# Output to debug window disappears too fast

**URL:** <https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316>\
**Category:** General\
**Created:** [10 March 2024 21:08 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316 "2024-03-10T21:08:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rldoose](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rldoose](https://discourse.nodered.org/u/rldoose)\
**Post date:** [10 March 2024 21:08 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/1 "2024-03-10T21:08:32Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 March 2024 21:43 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/2 "2024-03-10T21:43:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![rldoose](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rldoose](https://discourse.nodered.org/u/rldoose)\
**Post date:** [10 March 2024 23:41 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/3 "2024-03-10T23:41:37Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [11 March 2024 01:08 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/4 "2024-03-11T01:08:10Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [11 March 2024 08:22 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/5 "2024-03-11T08:22:54Z")

</div>

> [@xx\_Nexus\_xx](#):
>
> 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](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/4/448cdc189bb04da72c99756e19c0e2f0b04e445f.png)

In addition you might want to read this thread

> [@Solved: About syntax errors and good debugging practices](https://discourse.nodered.org/t/solved-about-syntax-errors-and-good-debugging-practices/28497/2):
>
> Hi Özgür, Welcome to this forum! When I paste the javascript code of your .html file in [jshint.com](http://jshint.com), then you see this: So when I follow the directions on the right pane, you should need to change it to this: var newConfigJSON = { PORT\_COUNT: $("#node-input-portCount").val(), LATCH\_PIN: $("#node-input-latchPin").val(), LATCH\_DELAY: $("#node-input-latchDelay").val(), SPEED: $("#node-input-speed").val(), …

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 March 2024 08:42 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/6 "2024-03-11T08:42:03Z")

</div>

> [@zenofmud](#):
>
> however you can limit the display per flow page

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.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [11 March 2024 08:47 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/7 "2024-03-11T08:47:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [11 March 2024 20:49 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/8 "2024-03-11T20:49:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 March 2024 21:15 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/9 "2024-03-11T21:15:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [12 March 2024 05:11 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/10 "2024-03-12T05:11:19Z")

</div>

😉 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 😉

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [12 March 2024 06:31 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/11 "2024-03-12T06:31:51Z")

</div>

What about using a contrib node like [node-red-contrib-flogger (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-flogger)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [12 March 2024 10:17 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/12 "2024-03-12T10:17:54Z")

</div>

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:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/4/448afe3c66b8d576db252a70d5d256f92e21a04c.png)

```auto
[{"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":[[]]}]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 June 2024 10:18 UTC](https://discourse.nodered.org/t/output-to-debug-window-disappears-too-fast/86316/13 "2024-06-10T10:18:33Z")

</div>

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