Skip to content

Commit

Permalink
fix electron frontend debug configuration
Browse files Browse the repository at this point in the history
For some reason TS files are loaded as
`webpack://@theia/example-electron/*` in Electron's Chrome DevTools, and
it confused VS Code's JS debugger.

Add a `sourceMapPathOverride` to point the debugger to the right place
on disk.
  • Loading branch information
paul-marechal committed Sep 14, 2021
1 parent 4924bc7 commit c22381f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@
"type": "chrome",
"request": "attach",
"name": "Attach to Electron Frontend",
"port": 9222
"port": 9222,
"sourceMapPathOverrides": {
"webpack://@theia/example-electron/*": "${workspaceFolder}/examples/electron/*"
}
},
{
"name": "Launch VS Code Tests",
Expand Down

0 comments on commit c22381f

Please sign in to comment.