Add ⇶ to debug node to indicate debugging also to console.log

This commit is contained in:
Dave Conway-Jones 2016-12-22 13:27:27 +00:00
parent 4cbe264869
commit 4ca3df77b3
1 changed files with 5 additions and 3 deletions

View File

@ -41,7 +41,7 @@
<p>The button to the right of the node will toggle its output on and off so you can de-clutter the debug window.</p>
<p>If the payload is an object or buffer it will be stringified first for display and indicate that by saying "(Object)" or "(Buffer)".</p>
<p>Selecting any particular message will highlight (in red) the debug node that reported it. This is useful if you wire up multiple debug nodes.</p>
<p>Optionally can show the complete <code>msg</code> object, and send messages to the console log.</p>
<p>Optionally can show the complete <code>msg</code> object, and send messages to the console log (⇶).</p>
<p>In addition any calls to node.warn or node.error will appear here.</p>
</script>
<script src="debug/view/debug-utils.js"></script>
@ -58,10 +58,12 @@
complete: {value:"false", required:true}
},
label: function() {
var suffix = "";
if (this.console === true || this.console === "true") { suffix = " ⇶"; }
if (this.complete === true || this.complete === "true") {
return this.name||"msg";
return (this.name||"msg") + suffix;
} else {
return this.name || "msg." + ((!this.complete || this.complete === "false") ? "payload" : this.complete);
return (this.name || "msg." + ((!this.complete || this.complete === "false") ? "payload" : this.complete)) + suffix;
}
},
labelStyle: function() {