You can use done if the old school methods and use node.log/console.log which you can use to print out values. These will print to the Node-RED log on the backend
This was covered in depth just a couple days ago on the list.
It is impossible to use the node debug tools within the function node. This is a known limitation of the VM module we use to run the function code.
You can use node inspector etc for everything else, but for the code inside a Function node you options are limited to console.logs and node.logs.
Nick
you could try node-inspector - but it does run slow....
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CACXWFwL%2BLOza5bRw8f6WP1BiBWXGSyW802bCKitC%2BOC-R26Vng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Debugger listening on port 9229.Warning: This is an experimental feature and could change at any time.To start debugging, open the following URL in Chrome:chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9229/6c9b3686-001e-42a4-86c7-6e77ae4bb097