Skip to content

Instantly share code, notes, and snippets.

@rolandoescobar
Created October 5, 2017 22:46
Show Gist options
  • Select an option

  • Save rolandoescobar/842e8229eb1157b6534aa08f8b842638 to your computer and use it in GitHub Desktop.

Select an option

Save rolandoescobar/842e8229eb1157b6534aa08f8b842638 to your computer and use it in GitHub Desktop.
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome against localhost, with sourcemaps",
"type": "chrome",
"request": "launch",
"url": "http://localhost:4200",
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
"sourceMapPathOverrides": {
"webpack:///*": "/*"
// "webpack:////absolute/path/to/workspaceRoot/*": "${webRoot}/*"
// works too, but this will not work:
// "webpack:///${workspaceRoot}/*": "${webRoot}/*"
}
},
{
// For this to work, start chrome using
// google-chrome --remote-debugging-port=9222 http://localhost:4200
// and do not use its developer tools simultaneously.
"name": "Attach to Chrome, with sourcemaps",
"type": "chrome",
"request": "attach",
"port": 9222,
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
"sourceMapPathOverrides": {
"webpack:///*": "/*"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment