Skip to content

Instantly share code, notes, and snippets.

@miparnisari
Created October 7, 2021 01:04
Show Gist options
  • Save miparnisari/3b0544936cc7835367aaa13f037fdf18 to your computer and use it in GitHub Desktop.
Save miparnisari/3b0544936cc7835367aaa13f037fdf18 to your computer and use it in GitHub Desktop.
Config to debug a VS code extension
{
"version": "0.2.0",
"configurations": [
{
"type": "extensionHost",
"request": "launch",
"name": "Debug client.ts",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/client/out/**/*.js"
]
// "preLaunchTask": "watch"
},
{
"type": "node",
"request": "attach",
"name": "Debug server.ts",
"address": "localhost",
"protocol": "inspector",
"port": 6010,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/server/out/**/*.js"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment