mon*_*tro 12 debugging visual-studio-code angular
我遵循了官方文档: https://code.visualstudio.com/docs/nodejs/angular-tutorial#_debugging-angular
ng new my-app。ng serve。都好。根据文档,它必须启动应用程序并达到我的断点。相反,我得到这个:
我不知道为什么这不起作用。请指教。谢谢。
另外,为什么我们需要这个扩展?
看起来调试模块现在内置在 VSCode 中,并且执行完全相同的操作:
但也不起作用(这里我禁用了扩展并使用了内置调试器):
I used to have your problems. I would struggle to find a solution and then some time later again the same thing. Always some confusing error with debugging from VS Code.
I moved to debugging my angular applications directly from browser and I am always happy. Chrome and Firefox have never disappointed me during debug.
Just keep in mind that for some strange reason webpack put all files under . source folder
Here is a picture of the structure and how you can find your files to debug directly from Chrome
您还可以移动到console选项卡并执行您想要的每条语句。
此外,将鼠标移到代码上将为您提供变量在执行期间保存的值。
| 归档时间: |
|
| 查看次数: |
14413 次 |
| 最近记录: |