Another note to self post. When writing node.js projects in WebStorm one of the major upsides is the debugging story. To hook that up you just create a configuration for it. One annoying thing I’ve encountered is that it does not restart the server/app after a crach or a save of the code-files.
In the command-line I’ve done this using nodemon and supervisor. I tend to prefer nodemon, so below I will show this using nodemon but it should work without problems using supervisor or any simular tool.
First of all install nodemon globally
> npm install nodemon -g
Then enter WebStorm, open your node.js project and:
That setup did not work as well as I hope, so I changed it around a little. Seems to work better:
Tags: development, node.js, note-to-self