Debugging Angular with VS Code & Setting Breakpoints

preview_player
Показать описание
It's really easy to set up and debug your Angular project with Visual Studio Code. This video covers just how simple the process is to launch debug and set breakpoints in VS Code.

Рекомендации по теме
Комментарии
Автор

you made my day with this video, that was so easy, it may be better if you add that the first time you use this feature vs code will tell you to install debug for chrome extensions.

keep the good work

MohammadAbouBasha
Автор

Thanks!!! I was having many problems with the new VsCode Debugger. It's working!

alejandro
Автор

thanks a lot, I was trying to get this working for a long time!

hansmuster
Автор

Adding the project name was a doozy! Thanks a bunch!

raman.thatikunta
Автор

Hi Brandon thanks for the video. Is there a way to debug in watch mode ? best regards

mehdiichkarrane
Автор

Too bad for me. For some reason with this my breakpoints are read, but it doesn't stop and I don't have any info in the variables... they just get greyed out .... :/

laetitia
Автор

"stop" button is not working

AniketNaik
Автор

NO need of tasks or anything. Just add this to the root *launch.json* file.
First name is for Angular, and the 2nd one for your API:

"configurations": [
{
"name": "Launch Chrome",
"request": "launch",
"type": "pwa-chrome",
"webRoot": "${workspaceFolder}/client"
},
{
"name": ".NET Core Attach api",
"type": "coreclr",
"request": "attach"
}
]

Make sure *ng serve* and/or your API are fired.

rezataba