Debugging external JavaScript code

I'm running an external .js file
image

but it wasn't working as expected (I've fixed it now - just a path issue)

But I added a console.log line to try and find out where things were going wrong but it didn't appear in the console (or the node-red terminal where I launched nr from)

How do I view/add debugging to an external .js file?

All of the output of the script will be written into the payload of the message the node sends on after the command completes.

1 Like

Thank you :slight_smile:
I only had debug node on output 3
Once I added the others - I see my console.log()s :slight_smile:

Top output is stdout, next is stderr, and last is any return code

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.