Node JS Debugger not hitting breakpoints

For some reason, the debugger isn't hitting my breakpoints. I've made a very simple test application to explain this issue:





A breakpoint is added onto the one and only line in Index.js. I create the following debug configuration:



Running the debug runs the file absolutely fine (I get the "Hello" output). But it doesn't stop at the breakpoint. 

Comment actions Permalink

strange, it definitely works for me using same setup. What IDEA version do you use? Try adding more console.log() lines with breakpoints - do any of them work? Please also attach a screenshot of your debug console while debugging, so that I xcan see what is logged there

Comment actions Permalink

IDEA version:

IntelliJ IDEA 2018.3.5 (Ultimate Edition)
Build #IU-183.5912.21, built on February 26, 2019
JRE: 1.8.0_152-release-1343-b28 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.2


More logs:



Debug console:


Comment actions Permalink

Oh bloody hell. I was pressing the green "Play" button, not the "Debug" button....


I'm an idiot.

Comment actions Permalink

I see, thanks for update:)

Comment actions Permalink

Thanks for responding. I guess I'm still trying to get used to the IntelliJ layout after VSCode :-)


Please sign in to leave a comment.