-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
src, lib: deprecate old debug-agent and CLI debugger #10276
Conversation
Print a warning if --debug or debug are used on the command line. PR-URL: <tbd> Reviewed-By: <tbd> Reviewed-By: <tbd>
Do we want to just pull in the soft deprecation (doc update) into this PR as well or is that taken care of in another place? |
I'd be inclined to put that in as a separate PR so that it doesn't get held up in case there are issues with a runtime deprecation. Is anyone stepping up to do the doc deprecation? I guess it would just be a note in |
Since I couldn't find a PR that does it yet: #10320 |
@@ -27,6 +27,7 @@ exports.start = function(argv, stdin, stdout) { | |||
stdout = stdout || process.stdout; | |||
|
|||
const args = [`--debug-brk=${exports.port}`].concat(argv); | |||
console.error('`node debug` is deprecated, use `node inspect` instead.\n'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, this should be updated to use process.emitWarning()
and DeprecationWarning
instead.
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
src, debugger
Description of change
Per #9789 the old V8 debugger and its protocol are on their way out 👋 .
This prints a deprecation warning to stderr when node is invoked with
--debug
ordebug
.--debug
starts the debug-agent within the process;debug
starts Node's builtin CLI debugger. Both utilize the old V8 debugger protocol.V8 inspector and
--inspect
replace--debug
. Work is underway to replace the CLI debugger (i.e.node debug
), see #10187.I didn't use
util.deprecate
on the_debugger.start()
function because it would print within the repl, i.e. prefixed withdebug>
./cc @nodejs/diagnostics