This is a small article intended for audiences who are working in an Angular project, using Visual Studio Code and finding it difficult to add debugger.

Initially, I found it very weird when I started, using Visual Studio Code for debugging Angular project but later I found it cool. I found lots of people had a question about how to debug angular project in VSCode. So, I thought of writing this small article.

Note.I made use of Angular CLI to create & run my Angular project which internally uses WebPack .

Step by Step add debugger in Visual Studio Code

Note.You may be surprised how JS can map my .ts file in code and debugger can hit my .ts file. This is because of "sourceMaps": true setting in launch.json. Similarly, we can add more debugger by adding an extension and then configuring in same launch.json file.

I hope, this small article will be helpful to you. Please do comment, whether it’s good or bad. Sharing is valuable. Thank you for reading and have a great day.