netbeans
netbeans copied to clipboard
Add support for Chrome DevTools Protocol for NodeJS Debugging
Highlight the hit breakpoint (see Marker in the "Breakpoints" Tab):

In the Global Node Configuration the debug protocol to be used can be selected, it defaults to the "Chrome DevTools protocol":

It would have been possible to select the protocol based on the version information from node, however the node from graalvm can't be safely and quickly detected, so the user has to choose.
In the per Project Settings the Node Debug Protocol can be overridden together with the node binary, as the two depend on each other:

Just a question, will this also work out of the box for TypeScript?
Just a question, will this also work out of the box for TypeScript?
I don't think so. The foundations could be used, but it needs to be integrated.
Can we merge this one ?
@matthiasblaesing we're getting close to freeze now, so need a call whether to merge for NB16, punt to NB17, or close.
Moved to 17 - I'd like to have another look at this.
I intent to merge this by next week, so if anyone wants to object, please do so now.
I see no milestone but this PR looks ok. Could we make it for NB 22 ?
This was tested and is reviewed. I rebased on master, gave it another mini-spin and if tests run clean, I plan to merge tomorrow.