-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Don't automatically forward debug ports in auto attach #107243
Comments
@connor4312 we can exclude based on "Debugger listening on", but are there cases where Node may print that message and it isn't coming form js-debug's auto attach? Is there some other information about the terminal or state in VS Code I can use to exclude that link? |
It will also be printed if running something like If you wanted to hone in more specifically, you could include |
Thanks! |
I can't repro this in stable, and I don't see the notification when I trigger port forwarding another way, what am I missing? |
The notification is new this iteration, so no repro in stable. To verify:
|
That case should forward the port. |
js-debug's auto attach "smart" mode causes a process to enter auto attach, without explicit flags. When entering debug mode, we let the OS choose a random free port (
0
) since we don't need any specific port.I noticed when working in a remote container that this caused a bunch of ports to automatically be forwarded in the remote.
Unfortunately this message is printed by Node and I cannot always stop it from printing.
Is there any way we could exclude the pattern
Debugger listening on ...
from automatic forwarding?The text was updated successfully, but these errors were encountered: