src/extensions/default/DebugCommands/NodeDebugUtils.js
function logNodeState() {
        if (brackets.app && brackets.app.getNodeState) {
            brackets.app.getNodeState(function (err, port) {
                if (err) {
                    console.log("[NodeDebugUtils] Node is in error state " + err);
                } else {
                    console.log("[NodeDebugUtils] Node is listening on port " + port);
                }
            });
        } else {
            console.error("[NodeDebugUtils] No brackets.app.getNodeState function. Maybe you're running the wrong shell?");
        }
    }
function logNodeState() {
        if (brackets.app && brackets.app.getNodeState) {
            brackets.app.getNodeState(function (err, port) {
                if (err) {
                    console.log("[NodeDebugUtils] Node is in error state " + err);
                } else {
                    console.log("[NodeDebugUtils] Node is listening on port " + port);
                }
            });
        } else {
            console.error("[NodeDebugUtils] No brackets.app.getNodeState function. Maybe you're running the wrong shell?");
        }
    }
function logNodeState ( ) { if ( brackets . app && brackets . app . getNodeState ) { brackets . app . getNodeState ( function ( err , port ) { if ( err ) { console . log ( "[NodeDebugUtils] Node is in error state " + err ) ; } else { console . log ( "[NodeDebugUtils] Node is listening on port " + port ) ; } } ) ; } else { console . error ( "[NodeDebugUtils] No brackets.app.getNodeState function. Maybe you're running the wrong shell?" ) ; } }
Logs the state of the current node server to the console.
Logs the state of the current node server to the console .