1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add option to colourise debug console output

Closes #1103
This commit is contained in:
Nick O'Leary 2017-01-08 22:38:40 +00:00
parent 1e37fed90b
commit 0e362943bf
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 5 additions and 2 deletions

View File

@ -21,8 +21,8 @@ module.exports = function(RED) {
var path = require("path");
var safeJSONStringify = require("json-stringify-safe");
var debuglength = RED.settings.debugMaxLength||1000;
var useColors = false;
// util.inspect.styles.boolean = "red";
var useColors = RED.settings.debugUseColors || false;
util.inspect.styles.boolean = "red";
function DebugNode(n) {
RED.nodes.createNode(this,n);

View File

@ -47,6 +47,9 @@ module.exports = {
// The maximum length, in characters, of any message sent to the debug sidebar tab
debugMaxLength: 1000,
// Colourise the console output of the debug node
//debugUseColors: true,
// The file containing the flows. If not set, it defaults to flows_<hostname>.json
//flowFile: 'flows.json',