Debugger Issue
- Dominant language
- C++
- Stars
- 1.1k
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
Same issue with #104 but i can get behind that. however when i try to put breakpoints in a file that is not on the same level as the cwd path vscode is not able to trigger it. i have some workaround by creating esbuild plugin to ensure all build files are on the same level as cwd path while preserving imports.
here is my launch settings
```
{
"version": "0.2.0",
"configurations": [
{
"type": "godot-quickjs",
"request": "launch",
"name": "Launch Godot Game",
"program": "W:/Apps/TSGodot/godot.344.exe",
"sourceMaps": true,
"cwd": "${workspaceRoot}/.game",
"sourceRoot": "${workspaceRoot}/game",
"sourceMapPathOverrides": {
"res://": "${workspaceRoot}/game"
}
},
{
"type": "godot-quickjs",
"request": "attach",
"name": "Attach to Godot",
"hostname": "localhost",
"port": 5556
}
]
}
Contributor guide
Research direction
Start by comparing this report with #104 and the provided VS Code launch settings, especially cwd, sourceRoot, sourceMaps, and sourceMapPathOverrides. Reproduce a breakpoint in a file outside the cwd level and compare the behavior with the reported esbuild workaround; done means the debugger triggers the breakpoint without that workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- godot, javascript, vscode
- Domain
- developer-experience, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100