简体   繁体   中英

Chrome debugger breaks at launch even without a breakpoint when started from Node.js VS Code project

Every time I launch my application, the Chrome Debugger immediately stops. I don't have any breakpoints. This is a really annoying behavior.

I launch my app with node --inspect-brk and launch the debugger (once) with chrome://inspect/ and click on Open dedicated DevTools for Node.

I followed this guide and it actually states that

When we open DevTools, the source code appears in the browser which has loaded while running our application and will be paused at the first line.

I hate this, how can I turn this off?

Found out. The --inspect-brk switch breaks when the debugger attaches. There's a regular --inspect flag instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM