src: remove deprecated node debug command by jasnell · Pull Request #33648 · nodejs/node · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion doc/api/deprecations.md
5 changes: 0 additions & 5 deletions lib/internal/main/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ const {

prepareMainThreadExecution();

if (process.argv[1] === 'debug') {
process.emitWarning(
'`node debug` is deprecated. Please use `node inspect` instead.',
'DeprecationWarning', 'DEP0068');
}

markBootstrapComplete();

Expand Down
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
first_argv = env->argv()[1];
}

if (first_argv == "inspect" || first_argv == "debug") {
if (first_argv == "inspect") {
return StartExecution(env, "internal/main/inspect");
}

Expand Down
29 changes: 0 additions & 29 deletions test/parallel/test-debug-usage.js

This file was deleted.

46 changes: 9 additions & 37 deletions test/parallel/test-debugger-pid.js