René's URL Explorer Experiment


Title: debugger: add --help to `node inspect` and improve docs by joyeecheung · Pull Request #63201 · nodejs/node · GitHub

Open Graph Title: debugger: add --help to `node inspect` and improve docs by joyeecheung · Pull Request #63201 · nodejs/node

X Title: debugger: add --help to `node inspect` and improve docs by joyeecheung · Pull Request #63201 · nodejs/node

Description: Add --help / -h to node inspect covering both interactive and non-interactive probe modes. The help text is printed when --help/-h appears before any positional argument to avoid hijacking --help passed to a child script. Improve the documentation of probe mode and add examples, explain same-location probe coalescing, TDZ caveat for let/const bindings, basename matching and exit code behavior. Also move it to a section parallel to interactive mode. Remove recommendation of evaluating structured expressions as that is prone to missing info in JSON mode. Drive-by: when probe mode exits due to invalid arguments, exit with kInvalidCommandLineArgument (9) instead of kGenericUserError (1).

Open Graph Description: Add --help / -h to node inspect covering both interactive and non-interactive probe modes. The help text is printed when --help/-h appears before any positional argument to avoid hijacking --help p...

X Description: Add --help / -h to node inspect covering both interactive and non-interactive probe modes. The help text is printed when --help/-h appears before any positional argument to avoid hijacking --help p...

Opengraph URL: https://github.com/nodejs/node/pull/63201

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:46b68590-064a-bd0d-c5e0-cf1d049e8ba3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA2A8:1929FC:1D78CD6:29A1B8D:6A4CCC79
html-safe-noncef3368a280b30a5169f4909684db6afff44621dac6bb2d731ef9feada0fef2c34
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkE4OjE5MjlGQzoxRDc4Q0Q2OjI5QTFCOEQ6NkE0Q0NDNzkiLCJ2aXNpdG9yX2lkIjoiOTIyMjI2MjQ5ODI2MTc4MTYyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac82c2daed84e7aaaf5c7595386f62bdda95244e56cdb1a01019acd7629ac4ed63
hovercard-subject-tagpull_request:3650451052
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/63201/files
twitter:imagehttps://avatars.githubusercontent.com/u/4299420?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4299420?s=400&v=4
og:image:altAdd --help / -h to node inspect covering both interactive and non-interactive probe modes. The help text is printed when --help/-h appears before any positional argument to avoid hijacking --help p...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneee8a9d18044a05fe2d57b9ae797da38c8be34effb03f015f7c42e94770d28a1b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef84814acc6f036583fd43463f5847a846243d2a4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/63201/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F63201%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F63201%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/63201/files
Reloadhttps://github.com/nodejs/node/pull/63201/files
Reloadhttps://github.com/nodejs/node/pull/63201/files
Please reload this pagehttps://github.com/nodejs/node/pull/63201/files
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/63201/files
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 962 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
nodejs-github-bothttps://github.com/nodejs-github-bot
nodejs:mainhttps://github.com/nodejs/node/tree/main
joyeecheung:probe-dochttps://github.com/joyeecheung/node/tree/probe-doc
Conversation 6 https://github.com/nodejs/node/pull/63201
Commits 1 https://github.com/nodejs/node/pull/63201/commits
Checks 39 https://github.com/nodejs/node/pull/63201/checks
Files changed https://github.com/nodejs/node/pull/63201/files
Please reload this pagehttps://github.com/nodejs/node/pull/63201/files
debugger: add --help to node inspect and improve docs https://github.com/nodejs/node/pull/63201/files#top
Show all changes 1 commit https://github.com/nodejs/node/pull/63201/files
b62ed5a debugger: add --help to `node inspect` and improve docs joyeecheung May 7, 2026 https://github.com/nodejs/node/pull/63201/commits/b62ed5a37e22b4414e28a5008ca201d700897d4c
Clear filters https://github.com/nodejs/node/pull/63201/files
Please reload this pagehttps://github.com/nodejs/node/pull/63201/files
Please reload this pagehttps://github.com/nodejs/node/pull/63201/files
debugger.md https://github.com/nodejs/node/pull/63201/files#diff-dffca1198b5f5501af35a6139d4c21ded8879f179a3d1f38232c22611283965e
inspect.js https://github.com/nodejs/node/pull/63201/files#diff-938c4a19feaed4fd2988eb8f5c501ae631010b26f11a8b1e89c9fb6e109b1914
inspect_helpers.js https://github.com/nodejs/node/pull/63201/files#diff-225e0697cbf1f5b0133c6f71accbca3ac6cf0be26e9e3bf5cb45b8527660fb50
inspect_probe.js https://github.com/nodejs/node/pull/63201/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
test-debugger-inspect-help-forwarding.mjs https://github.com/nodejs/node/pull/63201/files#diff-abd6ca4538a28bfa465ce6fc1171ba66a13bd7ec3ecb9d5d15add768525d4e62
test-debugger-inspect-help.js https://github.com/nodejs/node/pull/63201/files#diff-c957c31d2be0d4c224cc3232ef85e41d194d20a7f02fe380649f946f97909285
test-debugger-probe-missing-expr.js https://github.com/nodejs/node/pull/63201/files#diff-76a48cb70c2a300114c47e457d80605afa4be1f0fa9ead620570a21fcceb3bb9
test-debugger-probe-requires-separator.js https://github.com/nodejs/node/pull/63201/files#diff-63952cd5909d2cf7fe3fa22550e4f40c251a025bf61a5c0224d0259fd702e66d
doc/api/debugger.mdhttps://github.com/nodejs/node/pull/63201/files#diff-dffca1198b5f5501af35a6139d4c21ded8879f179a3d1f38232c22611283965e
View file https://github.com/joyeecheung/node/blob/b62ed5a37e22b4414e28a5008ca201d700897d4c/doc/api/debugger.md
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/nodejs/node/pull/63201/files
lib/internal/debugger/inspect.jshttps://github.com/nodejs/node/pull/63201/files#diff-938c4a19feaed4fd2988eb8f5c501ae631010b26f11a8b1e89c9fb6e109b1914
View file https://github.com/joyeecheung/node/blob/b62ed5a37e22b4414e28a5008ca201d700897d4c/lib/internal/debugger/inspect.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63201/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/63201/files#diff-938c4a19feaed4fd2988eb8f5c501ae631010b26f11a8b1e89c9fb6e109b1914
https://github.com/nodejs/node/pull/63201/files#diff-938c4a19feaed4fd2988eb8f5c501ae631010b26f11a8b1e89c9fb6e109b1914
https://github.com/nodejs/node/pull/63201/files#diff-938c4a19feaed4fd2988eb8f5c501ae631010b26f11a8b1e89c9fb6e109b1914
https://github.com/nodejs/node/pull/63201/files#diff-938c4a19feaed4fd2988eb8f5c501ae631010b26f11a8b1e89c9fb6e109b1914
https://github.com/nodejs/node/pull/63201/files#diff-938c4a19feaed4fd2988eb8f5c501ae631010b26f11a8b1e89c9fb6e109b1914
https://github.com/nodejs/node/pull/63201/files#diff-938c4a19feaed4fd2988eb8f5c501ae631010b26f11a8b1e89c9fb6e109b1914
https://github.com/nodejs/node/pull/63201/files#diff-938c4a19feaed4fd2988eb8f5c501ae631010b26f11a8b1e89c9fb6e109b1914
lib/internal/debugger/inspect_helpers.jshttps://github.com/nodejs/node/pull/63201/files#diff-225e0697cbf1f5b0133c6f71accbca3ac6cf0be26e9e3bf5cb45b8527660fb50
View file https://github.com/joyeecheung/node/blob/b62ed5a37e22b4414e28a5008ca201d700897d4c/lib/internal/debugger/inspect_helpers.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63201/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/63201/files#diff-225e0697cbf1f5b0133c6f71accbca3ac6cf0be26e9e3bf5cb45b8527660fb50
https://github.com/nodejs/node/pull/63201/files#diff-225e0697cbf1f5b0133c6f71accbca3ac6cf0be26e9e3bf5cb45b8527660fb50
https://github.com/nodejs/node/pull/63201/files#diff-225e0697cbf1f5b0133c6f71accbca3ac6cf0be26e9e3bf5cb45b8527660fb50
lib/internal/debugger/inspect_probe.jshttps://github.com/nodejs/node/pull/63201/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
View file https://github.com/joyeecheung/node/blob/b62ed5a37e22b4414e28a5008ca201d700897d4c/lib/internal/debugger/inspect_probe.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63201/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/63201/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
https://github.com/nodejs/node/pull/63201/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
https://github.com/nodejs/node/pull/63201/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
https://github.com/nodejs/node/pull/63201/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
https://github.com/nodejs/node/pull/63201/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
https://github.com/nodejs/node/pull/63201/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
https://github.com/nodejs/node/pull/63201/files#diff-fb4c4b0b38fa36a66ce48212ff85a62d04c7f67e466bbf1baa620b1718aae528
test/parallel/test-debugger-inspect-help-forwarding.mjshttps://github.com/nodejs/node/pull/63201/files#diff-abd6ca4538a28bfa465ce6fc1171ba66a13bd7ec3ecb9d5d15add768525d4e62
View file https://github.com/joyeecheung/node/blob/b62ed5a37e22b4414e28a5008ca201d700897d4c/test/parallel/test-debugger-inspect-help-forwarding.mjs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63201/{{ revealButtonHref }}
test/parallel/test-debugger-inspect-help.jshttps://github.com/nodejs/node/pull/63201/files#diff-c957c31d2be0d4c224cc3232ef85e41d194d20a7f02fe380649f946f97909285
View file https://github.com/joyeecheung/node/blob/b62ed5a37e22b4414e28a5008ca201d700897d4c/test/parallel/test-debugger-inspect-help.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63201/{{ revealButtonHref }}
test/parallel/test-debugger-probe-missing-expr.jshttps://github.com/nodejs/node/pull/63201/files#diff-76a48cb70c2a300114c47e457d80605afa4be1f0fa9ead620570a21fcceb3bb9
View file https://github.com/joyeecheung/node/blob/b62ed5a37e22b4414e28a5008ca201d700897d4c/test/parallel/test-debugger-probe-missing-expr.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63201/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/63201/files#diff-76a48cb70c2a300114c47e457d80605afa4be1f0fa9ead620570a21fcceb3bb9
Please reload this pagehttps://github.com/nodejs/node/pull/63201/files
Please reload this pagehttps://github.com/nodejs/node/pull/63201/files
Please reload this pagehttps://github.com/nodejs/node/pull/63201/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.