-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Description
Is your feature request related to a problem? Please describe.
Our project Rome has a test runner. We spawn worker_threads
to execute tests. We attach a debugger to each of them so we can collect stacktraces when tests timeout and have a blocked event loop. Right now, Node always outputs a "Debugger attached" message to stderr src/inspector_io.cc
. This leads to console spam whenever a test worker is started. That isn't ideal for an implementation detail and looks like a bug to a user.
Describe the solution you'd like
A way to disable the "Debugger attached" message, possibly via an environment variable or CLI flag.
Describe alternatives you've considered
Previously we used forked child processes and so had a dedicated stderr
where we could intercept and hide it. Unfortunately, it seems like there's no way to do that specifically with everything in the same process and that the log never happens in JS.