Skip to content

Commit

Permalink
fix electron frontend debug configuration (eclipse-theia#10101)
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 authored Sep 16, 2021
1 parent 0221c61 commit 8618183
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 8618183

Please sign in to comment.