1.打开扩展工具。

VsCode中调试angular代码

2.添加配置

VsCode中调试angular代码

3.在打开的文件中修改:

"configurations": [
 
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:4200",
"sourceMaps": true,
"webRoot": "${workspaceRoot}"
}
]
4.修改配置文件
VsCode中调试angular代码

 

 5.先启动服务然后代码中加断点,按F5,就可以调试了。

VsCode中调试angular代码

 

对不起,我用的是VS,我实在不习惯vsCode,什么GIT使用,什么发布都不会。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-05-01
  • 2021-07-23
  • 2022-01-05
  • 2021-10-19
猜你喜欢
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2021-04-29
  • 2021-10-25
  • 2022-01-26
相关资源
相似解决方案