Skip to content

Instantly share code, notes, and snippets.

@sople1
Created August 22, 2022 03:35
Show Gist options
  • Select an option

  • Save sople1/50bf259558bc7c3772228b3f680feebf to your computer and use it in GitHub Desktop.

Select an option

Save sople1/50bf259558bc7c3772228b3f680feebf to your computer and use it in GitHub Desktop.
Visual Studio Code: Debug multiple web app with Chrome
// .vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Debug Multiple application - with Launch Chrome Debug", // free to change
"urlFilter": "http://localhost:*", // for hooking
"pathMapping": {
"http://localhost:8000": "${workspaceFolder}/app0",
"http://localhost:8001": "${workspaceFolder}/app1"
},
"runtimeArgs": [ // set url for open site when chrome window is lanched
"http://localhost:8000",
"http://localhost:8001"
],
"resolveSourceMapLocations": [
"${webRoot}/**",
"${webRoot}/../../.output/**",
"!**/node_modules/**"
],
"sourceMapPathOverrides": {
"webpack:///./~/*": "${webRoot}/node_modules/*",
"webpack:////*": "/*",
"webpack://@?:*/?:*/*": "${webRoot}/*",
"webpack://?:*/*": "${webRoot}/*",
"webpack:///([a-z]):/(.+)": "$1:/$2",
"meteor://💻app/*": "${webRoot}/*"
}
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment