Skip to content

Instantly share code, notes, and snippets.

@elliotlarson
Created April 25, 2017 19:20
Show Gist options
  • Select an option

  • Save elliotlarson/880658901ab667f28de1742ef97af958 to your computer and use it in GitHub Desktop.

Select an option

Save elliotlarson/880658901ab667f28de1742ef97af958 to your computer and use it in GitHub Desktop.
Debugging Angular in VS Code
{
"name": "Launch Chrome against localhost, with sourcemaps",
"type": "chrome",
"request": "launch",
"url": "http://localhost:4200",
// This forces chrome to run a brand new instance, allowing existing
// chrome windows to stay open.
"userDataDir": "${workspaceRoot}/.vscode/chrome",
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
//"diagnosticLogging": true,
"sourceMapPathOverrides": { "webpack:///./*": "${webRoot}/*" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment