7

I see a lot of posts how to debug posts and talks on how debug node application and they mostly points to vs code and other command line tools.

As a fan of IntelliJ and WebStorm IDE, is anything I am missing which can save my day while debugging my Node.js application?

2 Answers 2

5

Please see https://blog.jetbrains.com/webstorm/2014/05/guide-to-node-js-development-with-webstorm/ - this post is not new, but still relevant

Sign up to request clarification or add additional context in comments.

Comments

3

Jetbrains has a write up of how to debug Node.js applications that is a good starting point:

https://www.jetbrains.com/help/idea/running-and-debugging-node-js.html

The biggest issue that I've run into is that none of the provided solutions automatically restart your application when changes are made. I've worked around this by using their remote debug functionality and attaching to a server running with nodemon. However, I still have to manually restart the remote debug job in IntelliJ as it does not automatically reconnect when the remote debug server restarts.

There is an open YouTrack request to add this functionality, but Jetbrain's recommendation is to instead use their Live Edit functionality.

Live Edit is bundled by default with Webstorm, but has to be installed on IntelliJ Ultimate. I have not tried using Live Edit with a Node.js application, but their documentation says that it should work.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.