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

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

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:

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

with this:

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.