Nodejs cloud9 debugger and gulp - grunt - npm



How can I launch a node app using gulp - grunt - npm AND connect it to the debugger in cloud9?

In my case I am using the “child_process” to start the server.

Something like this:

Debugger in node.js react-starter-kit
How do I use cloud9's debugger when running a grunt task?

you need to pass debugging options to the child_process when launching it similar to

you can create a runner that launches grunt and change
cp.spawn('node', [serverPath], { to

cp.spawn('node', [
], {
    "script": [
       // script to launch here
    "debugger": "v8",
    "debugport": 15454 // port needs to be the same as the one passed to --debug-brk