diff --git a/nodes/core/core/58-debug.html b/nodes/core/core/58-debug.html
index 3ab593ac0..3e5423c8e 100644
--- a/nodes/core/core/58-debug.html
+++ b/nodes/core/core/58-debug.html
@@ -115,7 +115,14 @@
var sbc = document.getElementById("debug-content");
var messageCount = 0;
-
+
+ RED._debug = function(msg) {
+ handleDebugMessage("",{
+ name:"debug",
+ msg:msg
+ });
+ }
+
var handleDebugMessage = function(t,o) {
var msg = document.createElement("div");
msg.onmouseover = function() {