Description
In #12197, support for --inspect --debug-brk
was removed, and --inspect-brk
should now be used instead, but --inspect-brk
is only supported after 7.6.0.
Since there is no common way to start the inspector across all Node versions that support it, this is an issue for VS Code and other debug clients which now have to determine which version of Node they are launching and select the right arguments, or detect when using one set fails, and try the other set. It's also annoying for anyone who switches node versions often and uses these arguments from the command line.
Would it be possible to retain support for --inspect --debug-brk
so that there's one command which can start Node in debug mode across all versions that support the inspector protocol? If it simplifies things, it could be undocumented.