// Steps
1. Disable JavaScript Debugger
2. Install or Enable JavaScript Debugger (Nightly)
3. Run JavaScript Debugger using A or B method
A: View-> Command Palette
> Debug: JavaScript Debug Terminal
ng serve
B: launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
// "url": "http://localhost:4200",
"webRoot": "${workspaceFolder}",
"sourceMaps": true,
"url": "http://[::1]:4200/", ///<<<<<<<< load more faster
}
]
}
C: package.json
"scripts": {
"ng": "ng",
"start": "ng serve --host=127.0.0.1",
...
C: F5 - Run Debugging
4. View-> Command Palette
> Debug: Open Link
http://localhost:4200