简体   繁体   中英

Problems when debugging in vscode Breakpoints are disabled

I have a problem when starting the debug in vscode (F5) the Breakpoints are disabled, thus not making stops at the chosen locations. I've already changed the "webRoot" with or without a slash in launch.json, see below.

launch.json configuration

launch.json 配置

Before starting the debug:

在开始调试之前。

When starting Debug:

启动调试时。

When starting the debug where the breakpoints are disabled

I also changed the sourceMap in Tsconfig.json to true and then false to see if it worked and nothing.

I would like to know if anyone has experienced this and if they have a solution and why this happen

This item was resolved as follows by adding this item "start": "ng serve --host=127.0.0.1" in package.json. Now I'm trying to understand what happens to the error Unexpected 503 response from http://127.0.0.1:4200/runtime.js.map : connect ECONNREFUSED 127.0.0.1:4200

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