-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Allow to suppress --inspect hint #12665
Comments
Currently, tools can analyze stderr stream and chop off the messages. Since messages format is not strictly defined, it looks like a guessing on tools' side. E.g. hint text format is going to be changed in #11207. |
I think you can |
On current master, it looks like |
@cjihrig Correct, on current master no |
Right. @Fishrock123 was proposing an existing solution to the problem. |
@cjihrig Thank you for looking into it and the PR! What do you think about postponing printing the hint text for some time to let tools connect the the port? Seems there is already a logic that prints the hint when a client disconnects. |
If you mean adding an arbitrary timeout before printing, I'm -1 on that idea. It's difficult to add testing for, and can be affected by the machine (as we've seen in our own CI). |
Might be helpful for VSCode /cc @roblourens |
Yeah, currently VS Code snips out the message from the output stream. I probably wouldn't use |
Right, makes sense. |
@Fishrock123 IIUC, passing |
This is still an issue, right? No canonical way to squelch the output? Or should this be closed? |
I closed #12671 without merging because we couldn't really decide how this should be implemented. I'm happy to reopen it if we come up with a plan first. |
Added to the Feature Requests project. Closing as stalled/no-consensus. |
I'm interested in revisiting this for VS Code. Our new debugger uses |
FWIW, I'd still like to revisit #12671 to address this. |
Wanted to follow up on this and see if there's anything I can do to help 🙂 We're interested in making all terminals 'debug' terminals, but if we're unable to suppress the inspector messages this risks clogging up the output with lots of irrelevant (to the user) messages. An alternative approach sufficient for VS Code--if it would be more palatable to the Node.js team--is to add a function in the |
I don't believe this issue is relevant any longer. The current message printed is agnostic of the debugger used:
Closing this. |
@jasnell that's the problem -- we'd like the ability to not show that message. |
@connor4312 You can now: |
@bnoordhuis it looks like that's invalid in NODE_OPTIONS, so it doesn't work for our use case in VS Code where we attach the debugger using the options:
While we could add this manually to the top level program being executed, one big sore spot for which we're interested in this is child process, which we debug by --require'ing a bootloader in NODE_OPTIONS. Currently running a process that spawns a bunch of children looks something like this: Should we reopen this issue or should I file a new issue to request the --inspect-public-uid be allowed in NODE_OPTIONS? |
See: #558 Currently blocked on: nodejs/node#12665 (comment)
@connor4312 I'd open a pull request whitelisting it in edit: I mean this list: Lines 248 to 258 in 6e97a73
|
When started with inspector protocol, node emits messages relevant for debugging in Chrome DevTools:
However, these messages are not relevant when debugging using a tool (e.g. IDE) that connects to the debug port immediately.
It would be nice if it would be possible to suppress the hint. Possible ways:
The text was updated successfully, but these errors were encountered: