Add support for starting a debug session from the command line #46496
Labels
debug
Debug viewlet, configurations, breakpoints, adapter issues
*duplicate
Issue identified as a duplicate of another issue(s)
I like the debugger that comes with Code, and I'd like to use it more often, but in some cases starting it up is cumbersome.
My use case:
npm i -g foo
).foo --flag1
in the terminal.As far as I know the only way to do that would be to create a launch configuration file, which would look like this:
I have some problems with this approach:
node --inspect-brk /whatever/foo.js --flag1
and with the help of NiM I immediately get the devtools open, why isn't it as easy, or easier, to do the same with Code?foo --flag2
, go write another configuration for it.Basically always requiring the creation of a launch configuration files leads to an awful user experience for me.
Proposed solution:
Node has the
--inspect
and--inspect-brk
command line flags, I think similar flags should be added to Code itself. Code already comes with the--inspect-extensions
and--inspect-brk-extensions
flags, so the lack of those other flags seems like a major overlooking to me.The text was updated successfully, but these errors were encountered: