- Install node.js and optionally yarn
- Install and open Visual Studio Code
- Install chrome debugging extension for Visual Studio Code
- Install @angular/cli
npm i -g @angular/cliORyarn global add @angular/cli - Create a new project
ng new my-project - Open project in Visual Studio Code
- Debug > Add configuration
- Paste contents of
launch.jsoninto the newlaunch.jsonconfiguration file. - Start project
ng serveoptionally changing the port with-p <value>or--port. Remember to change the port inlaunch.jsonfirst since Visual Studio Code will reload and stop all programs running in the builtin terminal. - Debug > Launch Chrome against localhost
Last active
October 16, 2025 07:02
-
-
Save cmckni3/c0429eada7a16813d182e5ce10a7ace2 to your computer and use it in GitHub Desktop.
Visual Studio code debugger configuration @angular/cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "chrome", | |
| "request": "launch", | |
| "name": "Launch Chrome against localhost", | |
| "url": "http://localhost:4200", | |
| "webRoot": "${workspaceRoot}" | |
| }, | |
| { | |
| "type": "chrome", | |
| "request": "attach", | |
| "name": "Attach to Chrome", | |
| "port": 9222, | |
| "webRoot": "${workspaceRoot}" | |
| } | |
| ] | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@blowysrl , thanks for taking the time to share feedback. I appreciate the note that the
webRootfor Angular projects may differ.