Created
October 5, 2017 22:46
-
-
Save rolandoescobar/842e8229eb1157b6534aa08f8b842638 to your computer and use it in GitHub Desktop.
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": "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