-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I am using docker to build a debug version of a wasm program, which makes the DWARF information contain file paths as used inside the docker container fs.
How can I use sourceMapPathOverrides to point to the right sources?
I have tried:
// in .vscode/launch.json
{
"version": "0.2.0",
"configurations": [
"type": "node",
"request": "launch",
"name": "Debug Current Test File",
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}myproj/node_modules/vitest/vitest.mjs",
"runtimeArgs": ["--preserve-symlinks"],
"sourceMapPathOverrides": {
"file:///workspace/*": "${workspaceFolder}/ccode/*",
}
}
What does work is making a symlink /workspace -> ${workspaceFolder}/ccode
Basically I am looking for path substitutions like: https://developer.chrome.com/docs/devtools/wasm#map-path
Metadata
Metadata
Assignees
Labels
No labels