Debug JS code inside function node

Here is it...

And although the topic is about debuging a custom node - it works perfectly well for your requirement...

Just put debugger in your function node

e.g...

var x = msg.payload;
debugger
//...some complex code
//...some complex code
//...some complex code
//...some complex code
return msg;

and if its all working, VSCode will pause on the debugger line.

1 Like