简体   繁体   English

在禁用 vscode 断点调试时出现的问题

[英]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.我在 vscode (F5) 中启动调试时遇到问题,断点被禁用,因此不会在所选位置停止。 I've already changed the "webRoot" with or without a slash in launch.json, see below.我已经在 launch.json 中更改了带斜线或不带斜线的“webRoot”,见下文。

launch.json configuration launch.json配置

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.我还将Tsconfig.json中的 sourceMap 更改为 true 然后更改为 false 以查看它是否有效但没有任何作用。

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.通过在 package.json 中添加“start”: “ng serve --host=127.0.0.1” 解决了这个问题。 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现在我试图了解错误 Unexpected 503 response from http://127.0.0.1:4200/runtime.js.map发生了什么:connect ECONNREFUSED 127.0.0.1:4200

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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