Output to debug window disappears too fast

Output to debug disappears before I can inspect the information. Especially if the information is a large array, it disappears way before I have an oppertunity to drill down. I'm using node red v3.13 on Victron Venus OS Large.

This is a new behavior that just started, and I have no idea why.

Any guidance would be greatly appreciated!

do you have some other nodes outputting to debug (maybe on another tab ?) - The debug "stack" is global and only a certain depth - so if something else is filling it up rapidly your data may get bumped off.

You are quite right! Had some devices that disconnected to to port mapping on another flow causing dozens of error messages each cycle. Thanks so much!

I always was wonderin how much performance all my DEBUG nodes consuming. Do you know?

Is there a way to disable/enable all debug nodes globally?

No there is not, however you can limit the display per flow page or by selected nodes:
Screenshot 2024-03-11 at 4.17.25 AM

In addition you might want to read this thread

That is actually the problem... if you limit it for display - it doesn't actually limit the overall stream of messages - so on the tab you are looking at you may see one or two per sec - but on another tab there may be 1000s which then bump yours off the stack and they disappear from your tab before you can read them.

1 Like

Oh yeah, I forgot about that. If I have that kind of issue I go in and disable all the other debug nodes but the one I want see.

yeah ... thats exactly my issue all the time :wink: ... serching for debug and than going after them to disable ... lol ... hence global disable would be awesome :wink:

If you click on the header line of debug output it will take you to the debug node that generated it.
Keep all debug nodes disabled except ones that you really want enabled.

:wink: i'm aware of that .. but with hundreds o debug nodes this often is a challange. Thats why I maintain a DEV environment (with debug) and a 'kind-of-PROD' with disabled debug nodes :wink:

What about using a contrib node like node-red-contrib-flogger (node) - Node-RED

If you only had one debug node and links to it when you want to show debug data then you could filter the ones which get sent to the debug pane.
It is pretty clunky. Example filtering by msg.topic:

[{"id":"93c554e06ca6c140","type":"tab","label":"FIltered Debug","disabled":false,"info":"","env":[]},{"id":"55e28d1d57c75974","type":"group","z":"93c554e06ca6c140","name":"Maintain allowed debug topics","style":{"label":true},"nodes":["85a4538e28e5c29a","304a609bf7a2fe56","647ea17451749b49","6baf26742d602458","3f25354ae7b8c3e8"],"x":34,"y":19,"w":792,"h":122},{"id":"36a8eff86b5266bb","type":"group","z":"93c554e06ca6c140","name":"Display or discard debug depending on topic","style":{"label":true},"nodes":["8324491a9cefb233","338bff775b0c19ad","bda72a27cbd5efc2","4f532cb5ca33ed85","d7e2d2938416c042"],"x":34,"y":159,"w":792,"h":122},{"id":"b06462f46fdad05c","type":"group","z":"93c554e06ca6c140","name":"Test data","style":{"label":true},"nodes":["1ff5ca6a4e39dd0a","86cb91a65482a85f","1e6966d7a84387be","1511e85ebf4cee8d","68490dc9c283b8a5","8963edb58996114d","589826de2bd58bec","eee4277873214d81"],"x":34,"y":299,"w":682,"h":122},{"id":"8324491a9cefb233","type":"debug","z":"93c554e06ca6c140","g":"36a8eff86b5266bb","name":"FIltered Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":700,"y":240,"wires":[]},{"id":"338bff775b0c19ad","type":"switch","z":"93c554e06ca6c140","g":"36a8eff86b5266bb","name":"Known topic?","property":"debugfilter","propertyType":"flow","rules":[{"t":"hask","v":"topic","vt":"msg"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":320,"y":200,"wires":[["bda72a27cbd5efc2"],["d7e2d2938416c042"]]},{"id":"1ff5ca6a4e39dd0a","type":"inject","z":"93c554e06ca6c140","g":"b06462f46fdad05c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"debugyes","payload":"","payloadType":"date","x":170,"y":340,"wires":[["68490dc9c283b8a5"]]},{"id":"86cb91a65482a85f","type":"inject","z":"93c554e06ca6c140","g":"b06462f46fdad05c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"debugno","payload":"","payloadType":"date","x":170,"y":380,"wires":[["eee4277873214d81"]]},{"id":"1e6966d7a84387be","type":"inject","z":"93c554e06ca6c140","g":"b06462f46fdad05c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"something else","payload":"","payloadType":"date","x":530,"y":340,"wires":[["589826de2bd58bec"]]},{"id":"bda72a27cbd5efc2","type":"switch","z":"93c554e06ca6c140","g":"36a8eff86b5266bb","name":"Show this topic?","property":"debugfilter[msg.topic]","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":520,"y":200,"wires":[["8324491a9cefb233"]]},{"id":"1511e85ebf4cee8d","type":"inject","z":"93c554e06ca6c140","g":"b06462f46fdad05c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":480,"y":380,"wires":[["8963edb58996114d"]]},{"id":"85a4538e28e5c29a","type":"inject","z":"93c554e06ca6c140","g":"55e28d1d57c75974","name":"Go","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":130,"y":60,"wires":[["304a609bf7a2fe56"]]},{"id":"304a609bf7a2fe56","type":"template","z":"93c554e06ca6c140","g":"55e28d1d57c75974","name":"Set flow.debugfilter","field":"debugfilter","fieldType":"flow","format":"handlebars","syntax":"mustache","template":"{\n    \"debugyes\": true,\n    \"debugno\": false\n}","output":"json","x":310,"y":60,"wires":[[]]},{"id":"4f532cb5ca33ed85","type":"link in","z":"93c554e06ca6c140","g":"36a8eff86b5266bb","name":"Filtered Debug","links":["68490dc9c283b8a5","eee4277873214d81","589826de2bd58bec","8963edb58996114d"],"x":140,"y":200,"wires":[["338bff775b0c19ad"]],"l":true},{"id":"68490dc9c283b8a5","type":"link out","z":"93c554e06ca6c140","g":"b06462f46fdad05c","name":"link out 1","mode":"link","links":["4f532cb5ca33ed85"],"x":335,"y":340,"wires":[]},{"id":"eee4277873214d81","type":"link out","z":"93c554e06ca6c140","g":"b06462f46fdad05c","name":"link out 2","mode":"link","links":["4f532cb5ca33ed85"],"x":335,"y":380,"wires":[]},{"id":"589826de2bd58bec","type":"link out","z":"93c554e06ca6c140","g":"b06462f46fdad05c","name":"link out 3","mode":"link","links":["4f532cb5ca33ed85"],"x":675,"y":340,"wires":[]},{"id":"8963edb58996114d","type":"link out","z":"93c554e06ca6c140","g":"b06462f46fdad05c","name":"link out 4","mode":"link","links":["4f532cb5ca33ed85"],"x":675,"y":380,"wires":[]},{"id":"d7e2d2938416c042","type":"switch","z":"93c554e06ca6c140","g":"36a8eff86b5266bb","name":"allowunknown == true?","property":"allowunknown","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":350,"y":240,"wires":[["8324491a9cefb233"]]},{"id":"647ea17451749b49","type":"inject","z":"93c554e06ca6c140","g":"55e28d1d57c75974","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":510,"y":60,"wires":[["3f25354ae7b8c3e8"]]},{"id":"6baf26742d602458","type":"inject","z":"93c554e06ca6c140","g":"55e28d1d57c75974","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false","payloadType":"bool","x":510,"y":100,"wires":[["3f25354ae7b8c3e8"]]},{"id":"3f25354ae7b8c3e8","type":"change","z":"93c554e06ca6c140","g":"55e28d1d57c75974","name":"","rules":[{"t":"set","p":"allowunknown","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":60,"wires":[[]]}]
1 Like