English
Français

Blog of Denis VOITURON

for a better .NET world

How to debug Angular with VSCode

Posted on 2018-08-22

Here is a quick procedure to configure your Angular project to allow debugging in VSCode via breakpoints, …

launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Launch Chrome",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:4200/#",
      "webRoot": "${workspaceFolder}"
    },
    {
      "name": "Attach Chrome",
      "type": "chrome",
      "request": "attach",
      "url": "http://localhost:4200/#",
      "webRoot": "${workspaceFolder}"
    }
  ]
}

tasks.json

{
    "version": "2.0.0",
    "tasks": [
      {
        "identifier": "ng serve",
        "type": "npm",
        "script": "start",
        "problemMatcher": [],
        "group": {
          "kind": "build",
          "isDefault": true
        }
      }
    ]
}

Languages

EnglishEnglish
FrenchFrançais

Follow me

Recent posts