Debug Node

The Debug Node is a node designed for identifying and resolving issues or errors in your flows.

It shows chosen message characteristics in the debug sidebar and can also exhibit them in the runtime log, if needed.

Step-by-step instructions - example

To see how this node works import the ready made flow using the instructions here: Importing a Node-RED flow or follow the instructions below.

[{"id":"48c64e7.cdb30b","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"f79eb729.4dbfd8","type":"vertex action","z":"48c64e7.cdb30b","name":"","typeButton":"single","bPayload":{"action":"off","group":"80e71f1b478e0dda915682ba49ea6d10","param":null,"priority":"254"},"bState":"","defaultpriority":true,"x":770,"y":320,"wires":[["3f884023.a9f3e"]]},{"id":"d9625e51.a9caf","type":"dali2devs","z":"48c64e7.cdb30b","name":"","uid":"0022518508153C283A","dali2dev":"0","devStatus":2,"instanceType":1,"dali2t1":90,"dali2t2":"","instanceData":{"InstanceStatusFlags":2,"InstanceType":1,"Resolution":1,"InstanceError":false,"InstanceActive":true,"InstanceGroup0":255,"InstanceGroup1":255,"InstanceGroup2":255,"EventScheme":2,"EventPriority":3,"EventFilter":212,"EventFilterSize":1,"FeatureType":[],"InputValue":0,"InstanceDetails":{"ShortTimer":25,"ShortTimerMin":10,"DoubleTimer":0,"DoubleTimerMin":10,"RepeatTimer":8,"StuckTimer":20},"DataModelRecipe":["Dali2Instance301_config"],"INSTNR":0},"mode":"normal","x":550,"y":320,"wires":[["f79eb729.4dbfd8","95460531.d0dc08"]]},{"id":"3f884023.a9f3e","type":"vertex cluster","z":"48c64e7.cdb30b","rate":90,"x":970,"y":320,"wires":[]},{"id":"95460531.d0dc08","type":"debug","z":"48c64e7.cdb30b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":770,"y":260,"wires":[]}]

Find the following nodes in the palette on the left side of the Node-RED, drag them to your workspace and connect them as shown.

  • DALI2 Devs Common

  • vertex action

  • vertex cluster

  • debug node

 

 

Open the debug node, to view upcoming messages, go to the ‘bug’ tab.

It is possible to configure Debug Node. We can set the messages to be displayed in the debug window [1] or in the system console [2]. There is also an option send short (32 characters) to the status text under the debug node [3].

In the Output form you can enter what type of message you want to display. By default it’s msg.payload. The default setting is to show msg.payload, but any feature, the whole message or the JSONata outcome can be displayed.

 

Related pages