I'm debugging a node.js application using PHPStorm. Maybe I should be using Webstorm, but I've been told they are equivalent.
I'm using the Rest Client. When I start up the app using the Debug button, I see the app under "Debugger" button.
Then I run my Rest request by clicking the 'debug' in the rest client interface.
Now, in addition to my node.js app (run.js) I see another tab, 'localhost'
The app stops on breakpoints, it seems to go to run.js. If I find a problem, I debug the app again, restart the app, but then I see multiple tabs with localhost. When I close them Phpstorm asks me if I want to stop the process.
All, this is very confusing. I sometime will end up with 10 tabs or more, I have to go through each one. I don't see what advantage this gives me, I only want to run one environment at a time.
Another question, I'm not sure if this is related. Rest request always seems to run twice. I look at the debugger, and I see it going twice, sometimes with a delay back to the original rest request. How can I fix this?