-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Cannot use inspect in git-style mode #838
Comments
I have the same issue. The not ideal but not so bad is just to call your sub-command file directly, e.g. |
That is how I debug the git-style-subcommands... just point node directly at the subcommand's .js file. |
This looks like might be a solution on node side?
|
@shadowspawn After reading the link you provide I didn't realize how it can help this situation. Is the --debug-port option assigning a random port to the new created child process? |
Oh I didn't notice the reference before your comment. increment debug port looks good to me, finding the subcommand binary path and execute works but tedious. |
This issue will be resolved when v3.0.0 is released. Available now as a prerelease. See #1001 |
If you are using the node inspector for debugging git-style executable (sub)commands using node -inspect et al, the inspector port is incremented by 1 for the spawned subcommand. Shipped in v3: https://github.com/tj/commander.js/releases/tag/v3.0.0 Thanks to suggestion by @tcf909 |
Hello guys.
Isn't possible to use the debugger with inspect.
Example:
In file
index-command1.js
:And run:
node --inspect index.js command1
.I know that the git style is a child_process. But is possible to pass the --inspect to another command?
Thanks for this.
The text was updated successfully, but these errors were encountered: