GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — inspector: make `debug` an alias for `inspect` by ofrobots · Pull Request #11441 · nodejs/node

Conversation

@ofrobots

@ofrobots ofrobots commented Feb 17, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

node debug is now an alias of node inspect. This is intended to be a minimal change – it does
not get rid of the old debugger code. That can be done in a follow-on.

  • This commit has a circular dependency on Take --debug-port into account node-inspect#26. I propose that we land here, and then later land upstream.
  • test-debugger-pid.js disabled because it depends on ability to debug a
    pid in node-inspect. Once upstream adds this capability, we can enable
    the test back again.

/cc @nodejs/diagnostics @eugeneo @jkrems

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to Node.js builds or CI infrastructure. c++ Issues and PRs that require attention from people who are familiar with C++. debugger lib / src Issues and PRs involving general changes in the lib/ or src/ directories. inspector Issues and PRs related to the V8 inspector protocol. labels Feb 17, 2017
@ofrobots ofrobots added semver-major PRs that contain breaking changes and should be released in the next major version. inspector Issues and PRs related to the V8 inspector protocol. and removed inspector Issues and PRs related to the V8 inspector protocol. labels Feb 17, 2017
@hybrist hybrist mentioned this pull request Feb 17, 2017
Switch the CLI debugger to V8 inspector #11421
Closed
14 tasks done
ofrobots
ofrobots commented Feb 17, 2017
View reviewed changes
Comment thread test/parallel/test-debug-brk-no-arg.js Outdated

@ofrobots ofrobots Feb 17, 2017

Copy link
Copy Markdown
Contributor Author

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.

Removed because inspect behaviour is different from debug. The former stops before reaching the repl. This test doesn't make sense anymore.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jasnell jasnell added the wip Issues and PRs that are still a work in progress. label Feb 17, 2017
@joshgav joshgav changed the title inspector: make debug and alias for inspect inspector: make debug an alias for inspect Feb 22, 2017
@joshgav joshgav added the diag-agenda Issues and PRs to discuss during Diagnostics Working Group meetings. label Feb 23, 2017
@joshgav joshgav mentioned this pull request Feb 23, 2017
Diag WG Meeting - 2017-02 nodejs/diagnostics#85
Closed
hybrist
hybrist reviewed Feb 23, 2017
View reviewed changes
Comment thread deps/node-inspect/lib/_inspect.js Outdated

@hybrist hybrist Feb 23, 2017

Copy link
Copy Markdown
Contributor

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.

I assume this is to support node --{inspect,debug}-port=1234 {inspect,debug} my-script.js etc.? If so, I'd rather make that explicit.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@hybrist hybrist Feb 23, 2017

Copy link
Copy Markdown
Contributor

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.

Maybe something like this? nodejs/node-inspect#26

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ofrobots ofrobots Mar 14, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hybrist hybrist mentioned this pull request Feb 23, 2017
Take --debug-port into account nodejs/node-inspect#26
Merged
@joshgav joshgav mentioned this pull request Feb 24, 2017
blog: diag wg update and --debug deprecation nodejs/nodejs.org#1156
Closed
joshgav
joshgav previously requested changes Mar 7, 2017
View reviewed changes

@joshgav joshgav left a comment

Copy link
Copy Markdown
Contributor

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.

Summary: I think we should wait to alias debug till Node integrates V8 5.8+, and not at the start of Node 8, assuming Node 8 uses V8 5.7. This provides more notification time for those depending on the legacy interface.

Also, there's a lot of code here unrelated to aliasing debug. Could that be separated into another PR? It would make review easier. Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/node_debug_options.cc Outdated

@joshgav joshgav Mar 7, 2017

Copy link
Copy Markdown
Contributor

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.

--debug is the primary way to activate the legacy debugger interface. Aliasing it to --inspect instead would make it impossible to start that interface. That would break tools which still depend on it.

I think we should keep --debug associated with the legacy debugger as long as possible, i.e. till we update to V8 5.8+.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread lib/internal/bootstrap_node.js Outdated

@joshgav joshgav Mar 7, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

Per my previous comment, I think we should not yet alias --debug to --inspect. The reason for not yet aliasing --debug doesn't apply to node debug, but for consistency's sake, we should probably not yet alias node debug to node inspect either.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@joshgav joshgav mentioned this pull request Mar 13, 2017
Diag WG Meeting - 2017-03 nodejs/diagnostics#89
Closed
@ofrobots
ofrobots force-pushed the debug-alias branch from e0a5d3d to 4b47636 Compare March 14, 2017 21:44
@ofrobots

ofrobots commented Mar 14, 2017

Copy link
Copy Markdown
Contributor Author
  • @joshgav I have updated the PR to only make debug and alias of inspect. --debug will continue to start the old debug protocol. PTAL.
  • @jkrems This includes Take --debug-port into account node-inspect#26. This is a circular dependency, but I propose we land it here first (assuming tests pass upstream). Also, once node-inspect has the ability to debug PIDs, we can re-enable test-debugger-pid.js.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ofrobots
ofrobots dismissed joshgav’s stale review March 14, 2017 21:53

This PR no longer affects --debug

hybrist
hybrist reviewed Mar 14, 2017
View reviewed changes
Comment thread test/parallel/test-debug-usage.js Outdated

@hybrist hybrist Mar 14, 2017

Copy link
Copy Markdown
Contributor

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.

Note to future self: This test will need to be updated once we pull in @addaleax's usage text fix. https://github.com/nodejs/node-inspect/pull/20/files

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hybrist

hybrist commented Mar 14, 2017

Copy link
Copy Markdown
Contributor

👍 to "cherry-picking" that change (I'll try to do another dependency pull soon so the two code bases don't drift apart too much).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ofrobots ofrobots added this to the 8.0.0 milestone Mar 15, 2017
@MylesBorins MylesBorins mentioned this pull request Apr 3, 2017
Remove Legacy Debugger for 8.0.0 nodejs/CTC#94
Closed
bnoordhuis
bnoordhuis approved these changes Apr 4, 2017
View reviewed changes

@bnoordhuis bnoordhuis left a comment

Copy link
Copy Markdown
Member

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.

LGTM modulo comment.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test/parallel/test-debug-brk.js Outdated

@bnoordhuis bnoordhuis Apr 4, 2017

Copy link
Copy Markdown
Member

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.

You're leaving behind dead code with this change. Remove stdoutPattern and outputMatched from test(). There may be more.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ofrobots ofrobots Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bnoordhuis

bnoordhuis commented Apr 4, 2017

Copy link
Copy Markdown
Member

I'm afraid this needs a rebase. Seems some conflicting changes were landed today.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ofrobots

ofrobots commented Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

Yep, working on that now. In any case, I think it might make sense to land after #11431 and #12197 have landed to minimize conflicts.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@js-choi js-choi mentioned this pull request Aug 13, 2017
Support --inspect tapjs/tapjs#363
Closed
@tniessen tniessen added deprecations Issues and PRs related to deprecations. and removed wip Issues and PRs that are still a work in progress. labels Sep 7, 2018
This was referenced Jul 6, 2023
[Snyk] Fix for 2 vulnerabilities leonardoadame/node#23
Open
[Snyk] Fix for 2 vulnerabilities leonardoadame/node#57
Open
[Snyk] Fix for 2 vulnerabilities leonardoadame/node#77
Open
[Snyk] Security upgrade jest from 25.5.4 to 27.0.0 leonardoadame/node#147
Open
@aliscco aliscco mentioned this pull request Jul 10, 2023
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#628
Open
@leonardoadame leonardoadame mentioned this pull request Nov 28, 2023
[Snyk] Security upgrade jest from 26.6.3 to 27.0.0 leonardoadame/node#199
Open
This was referenced Nov 29, 2023
[Snyk] Security upgrade jest from 26.4.2 to 27.0.0 aliscco/alisco-node#785
Open
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#799
Open
@leonardoadame leonardoadame mentioned this pull request Nov 30, 2023
[Snyk] Security upgrade jest from 25.5.4 to 27.0.0 leonardoadame/node#281
Open
@aliscco aliscco mentioned this pull request Dec 2, 2023
[Snyk] Fix for 6 vulnerabilities aliscco/alisco-node#1050
Open
@leonardoadame leonardoadame mentioned this pull request Dec 5, 2023
[Snyk] Security upgrade jest from 25.5.4 to 27.0.0 leonardoadame/node#539
Open
@aliscco aliscco mentioned this pull request Dec 8, 2023
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#1158
Open
This was referenced Dec 10, 2023
[Snyk] Security upgrade jest from 25.5.4 to 27.0.0 leonardoadame/node#577
Open
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 leonardoadame/node#578
Open
This was referenced Dec 10, 2023
[Snyk] Security upgrade jest from 26.4.2 to 27.0.0 aliscco/alisco-node#1165
Open
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#1167
Open
@leonardoadame leonardoadame mentioned this pull request Dec 19, 2023
[Snyk] Security upgrade jest from 26.6.3 to 27.0.0 leonardoadame/node#581
Open
@aliscco aliscco mentioned this pull request Jan 1, 2024
[Snyk] Security upgrade jest from 26.4.2 to 27.0.0 aliscco/alisco-node#1182
Open
@aliscco aliscco mentioned this pull request Jan 31, 2024
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#1205
Open
@leonardoadame leonardoadame mentioned this pull request Feb 12, 2024
[Snyk] Fix for 3 vulnerabilities leonardoadame/node#684
Open
@leonardoadame leonardoadame mentioned this pull request May 13, 2024
[Snyk] Fix for 2 vulnerabilities leonardoadame/node#831
Open
@aliscco aliscco mentioned this pull request May 15, 2024
[Snyk] Fix for 2 vulnerabilities aliscco/alisco-node#1499
Open
@leonardoadame leonardoadame mentioned this pull request May 16, 2024
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 leonardoadame/node#963
Open
This was referenced May 16, 2024
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#1578
Open
[Snyk] Security upgrade jest from 26.4.2 to 27.0.0 aliscco/alisco-node#1581
Open
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#1601
Open
@leonardoadame leonardoadame mentioned this pull request May 19, 2024
[Snyk] Security upgrade jest from 26.6.3 to 27.0.0 leonardoadame/node#998
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell left review comments
@hybrist hybrist hybrist left review comments
@bnoordhuis bnoordhuis bnoordhuis approved these changes
@cjihrig cjihrig cjihrig approved these changes
+2 more reviewers
@targos targos targos approved these changes
@joshgav joshgav joshgav approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

build Issues and PRs related to Node.js builds or CI infrastructure. c++ Issues and PRs that require attention from people who are familiar with C++. deprecations Issues and PRs related to deprecations. inspector Issues and PRs related to the V8 inspector protocol. lib / src Issues and PRs involving general changes in the lib/ or src/ directories. semver-major PRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

10 participants

@ofrobots @hybrist @bnoordhuis @targos @cjihrig @addaleax @jasnell @joshgav @tniessen @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.