JS Debugger doesn't seem to work correctly or is it me? #7785
-
I tested in NetBeans 22 but with a lot of custom configs and today I also tried the new NetBeans 23 with clean user dir. @matthiasblaesing I dunno whether it is me who not understands the new JS debugger, that you implemented couple of weeks ago or it is not working as expected, that's why created a dicussion over a real ticket. When I have a nodeJS project (HTML5/JS project with enabled nodejs support) with a main,js file and this piece of code: const foo = function () {
console.log("bar");
};
foo(); I set a breakpoint at line two - console.log. Also it seems that the breakpoint in the js file is always wrong. nodejs-debugger.mp4In the IDE log I can see this: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
What node version is this? I tested with a (more or less) current master build and node 18.19.1 (the one bundled with Ubuntu 24.04). The breakpoints were correctly set and I halted at the right points. It is correct, that after your code is finished the process is kept running, as this is nodes behavior. The process ends when the debugger disconnects. |
Beta Was this translation helpful? Give feedback.
It is reproducible on windows.