Debugging an Angular 2 application running on a Lite server in WebStorm

I installed the Chrome extension "JetBrains IDE Support" and it works under port 63341.

My package.jsonscript looks like this:

"start": "concurrent \"npm run tsc:w\" \"npm run lite\" "

However, when I run the “debug launch” in WebStorm, I get

Disconnected connection: connect

over time.

I tried to add the command -node %NODE_DEBUG_OPTION%to the team, but that will not help.

What bothers me is that the Debugger tab in WebStorm shows that it is trying to connect to some port on the local host, which is always different from 63342 and disappears immediately after an error message appears.

+4
source share
1

Angular2, Lite, JavaScript Debug run, URL- Lite (http://localhost:3000 ) URL Debug, , , npm start script. . https://confluence.jetbrains.com/display/WI/Starting+a+JavaScript+debug+session#StartingaJavaScriptdebugsession-Startingadebugsessionwhenusingadifferentwebserver

+4

Source: https://habr.com/ru/post/1663227/


All Articles