# Debug panel not clearing when clear-debug-messages is triggered

**URL:** <https://discourse.nodered.org/t/debug-panel-not-clearing-when-clear-debug-messages-is-triggered/99221>\
**Category:** Core Development\
**Tags:** debugging\
**Created:** [30 September 2025 07:14 UTC](https://discourse.nodered.org/t/debug-panel-not-clearing-when-clear-debug-messages-is-triggered/99221 "2025-09-30T07:14:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Post date:** [30 September 2025 07:14 UTC](https://discourse.nodered.org/t/debug-panel-not-clearing-when-clear-debug-messages-is-triggered/99221/1 "2025-09-30T07:14:52Z")

</div>

Hi There,

I'm using the debug panel pop-out to constantly show my debug messages - nice feature, glad it's there!

What it doesn't do is clear when the debug panel is cleared:

![debug-not-clearing](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b65213870b4a041898a24870bbb5242df4764445.gif)

What the screencast shows is the debug panels being filled and then a clear-debug-message action is triggered clearing the panel but not the pop-out (the clearing of the pop-out is caused by the loop of the animated gif).

A quick investigation points to a possible solution, replacing this [line](https://github.com/node-red/node-red/blob/0c923320330c1a0a387d664f9038caca860793ee/packages/node_modules/%40node-red/nodes/core/common/21-debug.html#L437):

```auto
RED.actions.add("core:clear-debug-messages", function() { RED.debug.clearMessageList(true) });

```

with this:

```auto
RED.actions.add("core:clear-debug-messages", this.clearMessageList);

```

I can't confirm if that is correct but it did fix the issue for me.

Also since I don't know whether this is desired affect, I haven't put up a PR @ GitHub.

Tested on Node Red: 4.0.9.

---

<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:** [29 November 2025 07:15 UTC](https://discourse.nodered.org/t/debug-panel-not-clearing-when-clear-debug-messages-is-triggered/99221/2 "2025-11-29T07:15:11Z")

</div>

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