-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message "DevTools listening on ws://127.0.0.1" #26753
Comments
The message On a clean install of Ubuntu 22.04.2 LTS with only the default Firefox browser installed, I am not seeing it. On Windows 11 with latest Google Chrome and Firefox installed, I am however seeing it. GitHub is also consistently showing it. |
The message is also mentioned in https://developer.chrome.com/articles/new-headless/#debugging |
@MikeMcC399 so, Oct-2023, did you find out the way how to disable or suppress that "DevTools listening on" message? Your answer/comment above gave me hint that if any other browsers installed besides Electron than issues doesn't exist. My Ubuntu is basic And I would also expect that some env variable should help me to disable it, like |
This is not my area of expertise, so we'd need some further input from Cypress experts, such as @warrensplayer. |
The explanation of the message is in https://developer.chrome.com/articles/new-headless/#debugging as already mentioned in #26753 (comment). This could be covered in the Cypress documentation with a comment about whether to ignore it or not. |
Can we reopen this issue? Cypress makes the browser calls and should add an option to control this setting in the browser. It really should be off by default and opt in via a setting or flag? |
I have re-opened this issue. I suggest you log also a separate new issue for your special case with Octopus Deploy. There is a good case to suppress the message when running in CI if it is causing workflow issues:
The message occurs independently of the browser under test (Electron, Chrome, Firefox, Edge, etc.). |
Run the script via powershell (before it was via cmd), it worked for me ! 😄 |
@carlos-nevesaraujo could you please elaborate? Can you reproduce the error and then the fix? |
Current behavior
When Cypress is run (
open
,run
or through Module API) a message similar to the following is output to the console:Desired behavior
The message "DevTools listening on ws://127.0.0.1" should not be output when Cypress is run.
If it is not avoidable, then document the change to the user experience in the CHANGELOG for 12.12.0 or elsewhere.
Test code to reproduce
See logs https://github.com/cypress-io/cypress-example-kitchensink/actions/workflows/single.yml?query=branch%3Amaster
Cypress Version
First reported on Cypress
12.12.0
This is new behavior which did not occur on12.11.0
Still occurs on Cypress
13.16.1
.Node version
18.16.1
,v20.15.0
&v22.12.0
Operating System
Ubuntu
22.04
&24.04.1
LTSDebug Logs
See https://github.com/MikeMcC399/gpu-error-test/actions/workflows/gpu-test-base.yml
Other
It seems to be related to Chrome DevTools Protocol (cdp).
Using Chrome DevTools Protocol > Protocol Fundamentals says:
Protocol Fundamentals
When Chromium is started with a
--remote-debugging-port=0
flag, it starts a Chrome DevTools Protocol server and prints its WebSocket URL to STDERR. The output looks something like this:The text was updated successfully, but these errors were encountered: