WIP trying to support vscode-js-debug.

This commit is contained in:
Martín Lucas Golini
2025-06-20 22:18:30 -03:00
parent 79ecbacf87
commit 2fb80cd94a
5 changed files with 193 additions and 9 deletions

View File

@@ -238,6 +238,44 @@
}
}
]
},
{
"name": "node",
"url": "https://github.com/microsoft/vscode-js-debug",
"type": "pwa-node",
"run": {
"command": "node",
"command_arguments": [
"${env:VSCODE_JS_DEBUG_PATH}/src/dapDebugServer.js",
"${randPort}",
"127.0.0.1"
]
},
"languages": ["javascript", "typescript"],
"configurations": [
{
"name": "Launch Node.js program",
"request": "launch",
"arguments": {
"type": "pwa-node",
"program": "${file}",
"args": "${args}",
"cwd": "${cwd}",
"env": "${env}",
"runtimeExecutable": "node",
"console": "externalConsole"
}
},
{
"name": "Attach to Node.js process",
"request": "attach",
"arguments": {
"type": "pwa-node",
"processId": "${command:pickProcess}",
"cwd": "${cwd}"
}
}
]
}
]
}