title: How to attach Visual Studio to a C++ node module?
body: <p>I wrote a node.js module in C++ with Visual Studio. I created the project with <code>node-gyp configure --debug</code>. This seems to work fine and I can compile my code and a loadable binary is created in the <code>Debug</code> folder. I am then able to <code>require('./build/Debug/mymodule)</code> this file from a <code>server.js</code> file and when I start the server from the command line (<code>node server.js</code>), the module runs. But I am struggling to figure out how to attach the Visual Studio Debugger. </p>
  
  <p>According to <a href="https://stackoverflow.com/questions/23228868/how-to-debug-binary-module-of-nodejs">this question</a> it sounds like gdb is automatically attached (?), but how do I invoke my <code>server.js</code> with the Visual Studio debugger?</p>
  
  <p>Edit: I run Visual Studio 2015 and node v4.1.2</p>