Search code examples
javascriptnode.jssignalsnode-inspectorgeddy

Debugging Geddy Node.js application in Windows


Is there a way to debug Geddy.js (a Node.js framework) applications under Windows?

There is a wiki page on their site about debugging with node-inspector but I guess it won't work on Windows, because it uses signals:

kill -s USR1 3180 

Solution

  • You can also use WebStorm or IntelliJ as mentioned on the Debugging Wiki Page. Other IDEs might work with a similar configuration.

    I tried starting it with the debugger, but I get as far as debugging geddy. You can give it a go. The signal is only needed if the process was started without the debugger, however you can run the following command:

    node --debug /usr/local/lib/node_modules/geddy/bin/cli.js or node --debug-brk /usr/local/lib/node_modules/geddy/bin/cli.js

    I also found node-inspector-windows looks promising, but I've not tried it.