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