title: Debugging multithreaded applications in Node.js Tools for Visual Studio
body: <p>I've got a Node.js console application I'm trying to attach the debugger to in Visual Studio 2015. It works well until I create a net server that listens for incoming data.</p>
  
  <p>My console window starts off saying <code>Debugger listening on port 5858</code>, but when the net server is supposed to start it says <code>Press any key to continue...</code>. The output window then states:</p>
  
  <pre><code>The thread 'main thread' (0x1) has exited with code 0 (0x0).
  The program '[13260] node.exe' has exited with code -1073741819 (0xc0000005)   'Access violation'.
  </code></pre>
  
  <p>My guess is that the multi-threading is messing with my debugger. I've tried running visual studio as admin as well as Node.js as it's giving me an 'Access violation', but with no luck. I can also confirm that my debugger is in fact working without creating the net server.</p>
  
  <p>Does anyone know if there's a setting I'm missing to set a thread to use for debugging or steps to take in order for Visual Studio to understand debugging multiple threads in Node.js??</p>