How can we debug this using WebStorm?
I've tried running npm start run configuration with the WebStorm debugger, but it quits the process once it reaches a breakpoint. I've tried the suggestion here, https://github.com/kriasoft/react-starter-kit/issues/396#issuecomment-171331792 and it will show that the debugger is started, but the process quits when a breakpoint is reached and a tooltip is displayed in WebStorm that says "connection refused."
Thanks! I'll give this a try! Will this have live reloading and all the other goodness that comes with the npm start command?
I haven't figured out how to _debug_ with npm start. It tries to start the debugger before the server has pulled up the zipper on its pants. You can only run it, then debug on the client side using a separate "JavaScript debug" configuration pointing at localhost:3000.
+1
Apparently the process quits because node is running under a child process.
What I did was add the --debug arg under the runServer.js and create a remote debugger.
... cp.spawn('node', ['--debug', serverPath] ...
It isn't the best solution due I have to run the npm start first but at least the npm start and debugger work together.
Failed debugging with WebStorm 2016.3, but remembered once I've succeeded debugging by following this github issue.
Then followed Debugging Webpack app鈥檚 with WebStorm 2016.1 and failed the same.
then I noticed that RSK use cheap-module-source-map in debug mode but tutorial on WebStorm Blog it refered the source-map. so build RSK with-- --release and then succeed debugging.
If you're using WebStorm 2016.3 and want to debug RSK you could try to build it in release mode or just use source-map instead of cheap-module-source-map.
Most helpful comment