Created
August 10, 2022 11:50
-
-
Save minademian/ed6eac85668c0c69370fa53fd7a72393 to your computer and use it in GitHub Desktop.
Setting up debugging for Angular 1x+ project in VSCode
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
// Add under configurations array | |
{ | |
"name": "ng serve", | |
"type": "chrome", | |
"request": "launch", | |
"preLaunchTask": "debugproj", | |
"url": "http://localhost:4201/", | |
"webRoot": "${workspaceFolder}", | |
"sourceMapPathOverrides": { | |
"webpack:/*": "${webRoot}/*", | |
"/./*": "${webRoot}/*", | |
"/src/*": "${webRoot}/*", | |
"/*": "*", | |
"/./~/*": "${webRoot}/node_modules/*" | |
} | |
}, |
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": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "debugproj", | |
"type": "npm", | |
"script": "start:local", | |
"isBackground": true, | |
"presentation": { | |
"focus": true, | |
"panel": "dedicated" | |
}, | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"problemMatcher": { | |
"owner": "typescript", | |
"source": "ts", | |
"applyTo": "closedDocuments", | |
"fileLocation": [ | |
"relative", | |
"${cwd}" | |
], | |
"pattern": "$tsc", | |
"background": { | |
"activeOnStart": true, | |
"beginsPattern": { | |
"regexp": "(.*?)" | |
}, | |
"endsPattern": { | |
"regexp": "Compiled |Failed to compile." | |
} | |
} | |
}, | |
"options": { | |
"cwd": "${workspaceFolder}/src" | |
}, | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment