# Auto clear debug panel's content on deploy?

**URL:** <https://discourse.nodered.org/t/auto-clear-debug-panels-content-on-deploy/90963>\
**Category:** General\
**Tags:** debug\
**Created:** [13 September 2024 20:22 UTC](https://discourse.nodered.org/t/auto-clear-debug-panels-content-on-deploy/90963 "2024-09-13T20:22:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hbb999](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hbb999/32/55150_2.png) [@hbb999](https://discourse.nodered.org/u/hbb999)\
**Post date:** [13 September 2024 20:22 UTC](https://discourse.nodered.org/t/auto-clear-debug-panels-content-on-deploy/90963/1 "2024-09-13T20:22:12Z")

</div>

Is it possible to auto delete debug panel's content when I click on Deploy?

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [13 September 2024 20:26 UTC](https://discourse.nodered.org/t/auto-clear-debug-panels-content-on-deploy/90963/2 "2024-09-13T20:26:15Z")

</div>

Hi @hbb999

Its a very valid comment - but I don't think it is.

A lot of deploys are based on comparative outputs during development , so it may not be ideal to most

---

<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:** [13 September 2024 20:29 UTC](https://discourse.nodered.org/t/auto-clear-debug-panels-content-on-deploy/90963/3 "2024-09-13T20:29:05Z")

</div>

You could probably create your own plugin to do this if you wanted to.

I don't know that there is an official way to clear the panel though so you might have to track down the function that is called when you click the button in the panel and reproduce in your plugin.

There is an event for deploy so that part is certainly doable.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [13 September 2024 20:40 UTC](https://discourse.nodered.org/t/auto-clear-debug-panels-content-on-deploy/90963/4 "2024-09-13T20:40:26Z")

</div>

I am soo waiting for someone to suggest:

```auto
msg.clear = true 

```

on the debug node to allow purging the debug pane

```auto
Seed:planted

```

@Steve-Mcl  
when you can 😉

---

<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:** [13 September 2024 21:15 UTC](https://discourse.nodered.org/t/auto-clear-debug-panels-content-on-deploy/90963/5 "2024-09-13T21:15:38Z")

</div>

errr - so any node sending `msg.clear = true` would clear the whole panel for everyone.. errr no, never, no thanks.

```auto
Seed:salted

```

(but indeed as you originally suggested it was never done so you had history for comparison - but yes could be a personal preference on deploy I guess)

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [14 September 2024 07:09 UTC](https://discourse.nodered.org/t/auto-clear-debug-panels-content-on-deploy/90963/6 "2024-09-14T07:09:28Z")

</div>

Uuhh... yeah maybe not the best idea of mine 😬  
I like the idea of the preference approach, and have it per user.

---

<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:** [14 September 2024 07:28 UTC](https://discourse.nodered.org/t/auto-clear-debug-panels-content-on-deploy/90963/7 "2024-09-14T07:28:33Z")

</div>

hmm - preference - per user - not just a simple setting then.  
(see other thread on debug enhancements - [Debug show full message as default / configurable](https://discourse.nodered.org/t/debug-show-full-message-as-default-configurable/90904))

---

<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:** [13 December 2024 07:29 UTC](https://discourse.nodered.org/t/auto-clear-debug-panels-content-on-deploy/90963/8 "2024-12-13T07:29:00Z")

</div>

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