Debugger Issue
- Ngôn ngữ chính
- C++
- Star
- 1.1k
- Fork
- 80
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
}
]
}
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách so sánh báo cáo này với #104 và các thiết lập khởi chạy VS Code được cung cấp, đặc biệt là cwd, sourceRoot, sourceMaps và sourceMapPathOverrides. Tái hiện một breakpoint trong một tệp nằm ngoài cấp cwd và so sánh hành vi với workaround esbuild đã được báo cáo; được xem là hoàn thành khi trình gỡ lỗi kích hoạt breakpoint mà không cần workaround đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- godot, javascript, vscode
- Lĩnh vực
- developer-experience, devtools
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100