WebStorm Debugger for Node Stop at Uncontrolled Points

In WebStorm, I have a Node application, and I just uninstall debug and upon loading the debugger stops at a bunch of seemingly random lines in node_modules. I can continue up to 5 files until I get to the router / index.js file, which is stuck on one line for countless numbers.

I have no breakpoints in any of the node_modules files, obviously, and WebStorm does not show a breakpoint. However, he stops every time. My solution was to disable all breakpoints, wait for the application to load, and then enable it. Sometimes, however, I have to re-add my breakpoints if I want the checkbox to check and be able to hit these breakpoints. I have no problems at the moment. Any idea why it gets stuck in node_modules without breakpoints?

+4
source share
4 answers

. " ", , , , , , node_modules.

+1

, , .

, open vi webstorm .

vi...

:set list
:set number

, , , $, , Webstorm.

- ...

let j = 'hello' $

vi, .

let j = 'hello'^

^, webstorm, char. , , char , , .

+1

Webstorm 2017.2.4 . worker.js . Webstorm, , worker.js, , "" worker.js.

.

+1

, , "lib/main.js".

index.js:

module.exports = require('./lib/main');
0
source

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


All Articles