0

I am using Nodemon to speed up my development so it restarts my app when I do some changes.

As WebStorm debug is not working with Nodemon in standard way (%NODE_DEBUG% or --debug-brk does not trigger debugger properly), I found the way where I run nodemon --debug-brk and remote debugging session in WebStorm.

The issue which I got is that every time when nodemon restarts my app it hangs on (the app) until I will restart my remote debug and then it enters my entry JS file and then I can 'continue' and it works then. It is annoying and I have no idea how to set it up properly.

Is it either better way to set up Nodemon+WebStorm or somehow set WebStorm in a way when it will not loose connection to that debug session?

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Marek Urbanowicz
  • 12,659
  • 16
  • 62
  • 87

1 Answers1

2

As WebStorm debug is not working with Nodemon in standard way (%NODE_DEBUG% or --debug-brk does not trigger debugger properly)

WebStorm does allow debugging applications run with Nodemon using either Node.js

enter image description here

or NPM run configurations

enter image description here

The issue which I got is that every time when nodemon restarts my app it hangs on (the app) until I will restart my remote debug and then it enters my entry JS file and then I can 'continue' and it works then.

Known issue, WEB-25672

lena
  • 90,154
  • 11
  • 145
  • 150