FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src, lib: deprecate old debug-agent and CLI debugger by joshgav · Pull Request #10276 · nodejs/node · GitHub

/ node Public

src, lib: deprecate old debug-agent and CLI debugger - #10276

Closed
joshgav wants to merge 2 commits into
nodejs:masterfrom
joshgav:deprecate-debugger
Closed

src, lib: deprecate old debug-agent and CLI debugger#10276
joshgav wants to merge 2 commits into
nodejs:masterfrom
joshgav:deprecate-debugger

Conversation

joshgav commented Dec 15, 2016

Copy link
Copy Markdown
Contributor
Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected 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 or debug. --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 with debug> .

/cc @nodejs/diagnostics

Print a warning if --debug or debug are used on the command line.

PR-URL: <tbd>
Reviewed-By: <tbd>
Reviewed-By: <tbd>
joshgav added debugger lib / src Issues and PRs related to general changes in the lib or src directory. notable-change PRs with changes that should be highlighted in changelogs. inspector Issues and PRs related to the V8 inspector protocol labels Dec 15, 2016
nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. debugger labels Dec 15, 2016

hybrist commented Dec 16, 2016

Copy link
Copy Markdown
Contributor

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?

Trott commented Dec 17, 2016

Copy link
Copy Markdown
Member

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 doc/api/debugger.md?

hybrist mentioned this pull request Dec 17, 2016
2 tasks

hybrist commented Dec 17, 2016
edited
Loading

Copy link
Copy Markdown
Contributor

Since I couldn't find a PR that does it yet: #10320

Comment thread lib/_debugger.js
stdout = stdout || process.stdout;

const args = [`--debug-brk=${exports.port}`].concat(argv);
console.error('`node debug` is deprecated, use `node inspect` instead.\n');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

If possible, this should be updated to use process.emitWarning() and DeprecationWarning instead.

jasnell added the semver-major PRs that contain breaking changes and should be released in the next major version. label Dec 23, 2016

joshgav commented Jan 23, 2017

Copy link
Copy Markdown
Contributor Author

closed in favor of #10970 for node --debug and #10187 for node debug

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. inspector Issues and PRs related to the V8 inspector protocol lib / src Issues and PRs related to general changes in the lib or src directory. notable-change PRs with changes that should be highlighted in changelogs. semver-major PRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL