I'm running an external .js file
![image](https://global.discourse-cdn.com/business6/uploads/nodered/original/3X/c/3/c3e1ab1e62815d22412654fdf0fea8719ab27ed4.png)
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: :slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12)
I only had debug node on output 3
Once I added the others - I see my console.log()s ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12)
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.