Skip to content

Commit

Permalink
Fix source mapping for Chrome and Firefox launching
Browse files Browse the repository at this point in the history
Fixes #494

Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
  • Loading branch information
bhufmann committed Sep 24, 2021
1 parent 8cbb93c commit c15cc2e
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"name": "Start in Chrome",
"port": 9222,
"sourceMaps": true,
"sourceMapPathOverrides": {
"viewer-prototype:///./js/*": "${workspaceRoot}/viewer-prototype/lib/**/*.js",
"viewer-prototype:///js/*": "${workspaceRoot}/viewer-prototype/lib/**/*.js"
},
"webRoot": "${workspaceRoot}",
"url": "http://localhost:3000"
},
Expand All @@ -19,6 +23,10 @@
"name": "Attach to Chrome",
"port": 9222,
"sourceMaps": true,
"sourceMapPathOverrides": {
"viewer-prototype:///./js/*": "${workspaceRoot}/viewer-prototype/lib/**/*.js",
"viewer-prototype:///js/*": "${workspaceRoot}/viewer-prototype/lib/**/*.js"
},
"webRoot": "${workspaceRoot}"
},
{
Expand All @@ -27,7 +35,17 @@
"name": "Start in Firefox",
"reAttach": true,
"webRoot": "${workspaceRoot}",
"url": "http://localhost:3000"
"url": "http://localhost:3000",
"pathMappings": [
{
"url": "webpack://browser-theia-trace-example-app/theia-extensions",
"path": "${workspaceFolder}/theia-extensions"
},
{
"url": "webpack://browser-theia-trace-example-app/packages",
"path": "${workspaceFolder}/packages"
}
]
},
{
"type": "node",
Expand Down Expand Up @@ -82,7 +100,7 @@
"${workspaceRoot}/packages/*/lib/**/*.js",
"${workspaceRoot}/theia-extensions/*/lib/**/*.js",
"${workspaceRoot}/examples/electron/lib/**/*.js",
"${workspaceRoot}/examples/electron/src-gen/**/*.js",
"${workspaceRoot}/examples/electron/src-gen/**/*.js"
],
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart",
Expand All @@ -102,7 +120,7 @@
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
}
]
Expand Down

0 comments on commit c15cc2e

Please sign in to comment.