docs: function (that) {
          //If debugger is running again deactive buttons and remove line highlight
          that._nodeDebuggerDomain.on('running', function () {
              that.nodeDebuggerPanel.$logPanel.find('a.active').addClass('inactive').removeClass('active');
              if (that._highlightCm) {
                  that._highlightCm.removeLineClass(that._activeLine, 'node-debugger-highlight-background', 'node-debugger-highlight');
                  that._highlightCm = null;
                  that._activeLine = null;
                  that._activeDocPath = null;
              }
          });
  
          //If the debugger breaks, activate buttons and open the file we break/highlight line
          that._nodeDebuggerDomain.on('break', function (e, body) {
              var docPath = '';
              if (body.script && body.script.name) {
                  //Fixme: Just to support windows, however this most likely won't work in every case
                  docPath = body.script.name.replace(/\\/g, '/');
              }
  
              //Make sure the panel is open
              that.nodeDebuggerPanel.panel.show();
              that.nodeDebuggerPanel.$logPanel.find('a.inactive').addClass('active').removeClass('inactive');
              // Clear locals
              that.nodeDebuggerPanel.$debuggerSideBar.find('.brackets-nodejs-integration-debugger-log').remove();
  
              //Remove old highlight
              if (that._highlightCm) {
                  that._highlightCm.removeLineClass(that._activeLine, 'node-debugger-highlight-background', 'node-debugger-highlight');
              }
  
              //Where is the break?
              that._activeLine = body.sourceLine;
              that._activeDocPath = docPath;
              //Open the document and jump to line
              openActiveDoc(that);
          });
  
          //If the Debugger connects highlight the UI parts that need to be highlighted
          that._nodeDebuggerDomain.on('connect', function (e, body) {
              that.nodeDebuggerPanel.$debuggerSideBar.find('.brackets-nodejs-integration-debugger-log').remove();
              that.nodeDebuggerPanel.$logPanel.find('.activate').html('<i class="fa fa-check-circle" aria-hidden="true"></i>');
              if (prefs.get('debugger_break_on_start')) {
                  utils.show_popup_message(strings.DEBUGGER_FIRST_BREAK);
              }
              else {
                  utils.show_popup_message(strings.DEBUGGER_CONNECTED);
              }
  
              if (body.running) {
                  that.nodeDebuggerPanel.$logPanel.find('a.active').addClass('inactive').removeClass('active');
              }
              else {
                  that.nodeDebuggerPanel.$logPanel.find('a.inactive').addClass('active').removeClass('inactive');
              }
          });
  
          //If the Debugger disconnect remove all the highlights
          that._nodeDebuggerDomain.on('close', function (e, err) {
              var msg = err;
              if (err === 'ECONNREFUSED') {
                  msg = 'Could not connect to ' + prefs.get('debugger-host') + ':' + prefs.get('debugger-port');
              }
  
              if (msg && msg !== 'ECONNRESET') {
                  that.nodeDebuggerPanel.log($('<span>').text(msg));
                  utils.show_popup_message('Debugger: ' + msg);
              }
              if (err === false) {
                  utils.show_popup_message('Debugger: disconnected.');
              }
  
              //GUI update
              that.nodeDebuggerPanel.$logPanel.find('.activate').html('<i class="fa fa-times-circle" aria-hidden="true"></i>');
              that.nodeDebuggerPanel.$logPanel.find('a.active').addClass('inactive').removeClass('active');
  
  
              //remove highlight
              if (that._highlightCm) {
                  that._highlightCm.removeLineClass(that._activeLine, 'node-debugger-highlight-background', 'node-debugger-highlight');
                  that._highlightCm = null;
                  that._activeLine = null;
              }
          });
  
          //On evaluate display the result
          that._nodeDebuggerDomain.on('eval', function (e, body) {
              var $wrapper = $('<span>').addClass('wrapper');
              var $output = that.nodeDebuggerPanel.createEvalHTML(body, 0, body.lookup, prefs.get('lookupDepth'));
  
              $output.appendTo($wrapper);
              that.nodeDebuggerPanel.log($wrapper);
          });
  
      }