I'm getting starting with Node.js and Webstorm 7.0.3. I have created a simple Node.js app with express and I run it locally. I want to edit and save a .js file, refresh the broswer, and see the changes. As I understand it, this should pretty much work out-of-the box.
Here is what does work:
- I start the Node.js server
- I navigate to an express path with Chrome
- The page renders correctly.
Here is what doesn't work:
- I change the JavaScript function that renders the page
- I save the file
- I refresh the browser
- The Web page does not reflect the changes to the JavaScript function
Here are the directions I followed from the JetBrains help site:
- Create a Node.js run/debug configuration called "app.js"
- Check the "After launch" and "with Javascript debugger" options
- Create a JavaScript Debug configuration called "app.js.JavaScript
- Select "Debug" for the "app.js" configuration.
- The Node.js server starts
- Select "Debug" for the "app.js.JavaScript.
- I can now hit breakpoints in the application.
However, if I change the JS function that renders the page, save the file, and refresh the browser, the changes do not appear.
Configuration:
- WebStorm 7.0.3
- Chrome w/ JetBrains plugin 2.0
- Windows 8
- Node.js
- express 3.4.8
- hjs