# If msg debug module is flooded node red gets frozen

**URL:** <https://discourse.nodered.org/t/if-msg-debug-module-is-flooded-node-red-gets-frozen/10172>\
**Category:** General\
**Created:** [15 April 2019 13:31 UTC](https://discourse.nodered.org/t/if-msg-debug-module-is-flooded-node-red-gets-frozen/10172 "2019-04-15T13:31:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GiovanniG](https://avatars.discourse-cdn.com/v4/letter/g/ecd19e/32.png) [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Post date:** [15 April 2019 13:31 UTC](https://discourse.nodered.org/t/if-msg-debug-module-is-flooded-node-red-gets-frozen/10172/1 "2019-04-15T13:31:18Z")

</div>

Hi, I believe it is a bug,  
I've a recursive periodic injection every 0,2 seconds and I needed to debug a value, so I generated a msg retur and connected to the funzion the msg debug. After few seconds NR gets' frozen, maybe to don't discard debug objects it pretends to catch all and go to frozen. 0,2 seconds is not much, my PC isn't the latest but I suppose it can manage to receive a message esvery 0,2, seconds..  
Only with patience I was able to delete the flow between function and node and deploy again. I needed also to reload the browser (firefox) to gain the normal fast conditions.  
I think there is a slow java script here that should be optimizated to avoid this. There is also needed to introduce a switch somewhere to stop the flow working if something like ths get wrong, to keep again the control of web interface. If I stop node red I can't have more the web interface

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [15 April 2019 13:39 UTC](https://discourse.nodered.org/t/if-msg-debug-module-is-flooded-node-red-gets-frozen/10172/2 "2019-04-15T13:39:53Z")

</div>

There are a lot of reasons that debug output has the performance it does. It is discussed in other threads. You can try outputing to the log rather than the admin ui or, perhaps better if all you want is to monitor the current value, put that out to the status display instead.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [15 April 2019 13:45 UTC](https://discourse.nodered.org/t/if-msg-debug-module-is-flooded-node-red-gets-frozen/10172/3 "2019-04-15T13:45:59Z")

</div>

If you think you can further optimise the javascript code I’m sure the project would accept a pull request.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 April 2019 13:54 UTC](https://discourse.nodered.org/t/if-msg-debug-module-is-flooded-node-red-gets-frozen/10172/4 "2019-04-15T13:54:09Z")

</div>

> [@GiovanniG](#):
>
> There is also needed to introduce a switch somewhere to stop the flow working if something like ths get wrong, to keep again the control of web interface. If I stop node red I can't have more the web interface

We introduced the `--safe` command-line parameter in 0.20 for exactly this.

---

<div class="post-metadata">

**Author:** ![GiovanniG](https://avatars.discourse-cdn.com/v4/letter/g/ecd19e/32.png) [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Post date:** [15 April 2019 20:08 UTC](https://discourse.nodered.org/t/if-msg-debug-module-is-flooded-node-red-gets-frozen/10172/5 "2019-04-15T20:08:29Z")

</div>

I'll try to update to .20 tomorrow, thanks

---

<div class="post-metadata">

**Author:** ![GiovanniG](https://avatars.discourse-cdn.com/v4/letter/g/ecd19e/32.png) [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Post date:** [27 April 2019 10:01 UTC](https://discourse.nodered.org/t/if-msg-debug-module-is-flooded-node-red-gets-frozen/10172/6 "2019-04-27T10:01:11Z")

</div>

May you kindly write exaclty the line command with --safe?  
Thank you

---

<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:** [27 April 2019 10:32 UTC](https://discourse.nodered.org/t/if-msg-debug-module-is-flooded-node-red-gets-frozen/10172/7 "2019-04-27T10:32:56Z")

</div>

The command is

```bash
node-red --safe

```

however, if you have node-red to automatically run on boot you will have to stop it first.
