-
Notifications
You must be signed in to change notification settings - Fork 89
Development tips
beets edited this page Aug 21, 2020
·
4 revisions
In Chrome DevTools: Enable source maps
- Click on the cogwheel (Settings):
- Select: Enable JavaScript source maps
- Select: Enable CSS source maps
To find source code:
- Click on the Sources tab
- Expand webpack:// > . > js
- You should be able to see all the JS source files
To debug JS from VSCode:
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "PLACES: Launch Chrome against localhost",
"url": "http://localhost:8080/place?dcid=geoId/06",
"webRoot": "${workspaceFolder}/dist",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///./*": "${workspaceRoot}/static/*"
}
}
]
}
Note: You might have to disable the new JS Debugger to get this to work (disable Debug > Javascript: Use Preview)