I am trying to debug angular 12 application using visual studio code editor. i have firefox on my laptop. Below launch.json and tasks.json files are in .vscode folder.
Somehow application server is not getting started and debugger is not getting attached to code. Am I missing something?
launch.json
{
"version": "0.2.0",
"configurations": [
{ "name": "npm start",
"type": "firefox",
"request": "launch",
"url": "http://localhost:4200/",
"webRoot": "${workspaceRoot}",
"firefoxExecutable": "/Applications/Firefox 2.app/Contents/MacOS/firefox",
},
]
}
tasks.json
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"problemMatcher": [],
"label": "npm: start",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}