title: Waiting for debugger to disconnect... - Node.js in VSCode
body: <p>I'm trying to step through a simple javascript example in Visual Studio Code, but the debugger hangs trying to disconnect.</p>
  
  <p>macOS Sierra version 10.12.6</p>
  
  <p>VSCode version 1.18.1 (up to date)</p>
  
  <p>Node.js v8.9.2 (up to date) installed with Homebrew</p>
  
  <pre><code>Debugging with inspector protocol because Node.js v8.9.2 was detected.
  node --inspect-brk= /*(port)*/ jsSandbox.js 
  Debugger listening on ws:// (ip address)
  Debugger attached.
  Waiting for the debugger to disconnect...
  </code></pre>
  
  <p>This seems like it's been a closed issue with both <a href="https://github.com/Microsoft/vscode-node-debug2/issues/11" rel="noreferrer">Code</a> and <a href="https://github.com/nodejs/node/issues/7742" rel="noreferrer">Node</a> already, which is why I'm so confused. Am I doing something wrong?</p>
  
  <p>Here is the only javascript file I'm trying to debug:</p>
  
  <pre><code>// learning about closure
  
  function increase() {  // — gets called once
      var getBig = 0;
      return function() {  // — — gets called each time 
          getBig += 1;      // — — increments each time
          console.log(getBig);
      };
  }
  var bigOne = increase(); // --  a reference to the instance of the function
  bigOne(); //1
  bigOne();//2 
  </code></pre>
  
  <p>...and the project's launch.json config:</p>
  
  <pre><code>        {
              "type": "node",
              "request": "launch",
              "name": "Launch Program",
              "program": "${workspaceFolder}/jsSandbox.js",
              "console": "internalConsole"
          }
  </code></pre>