You can also debug your Angular application, Karma, and Protractor tests from directly within Visual Studio Code. First, you need to configure the debugger to work with a Chrome debugging environment, as illustrated:
- Click on the Debug pane
- Expand the No Configurations dropdown and click on Add Configuration...
- In the Select Environment select box, select Chrome
This will create a default configuration in the .vscode/launch.json file. We will modify this file to add three separate configurations.
- Replace the contents of launch.json with the following configuration:
.vscode/launch.json ...