We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xmake v2.7.9+20230523
Linux 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
launch.json 配置如下
{ "name": "XMake Debug", "type": "xmake", "request": "launch", "target": "panda", "stopAtEntry": true, "cwd": "${workspaceFolder}/build" }
调试时断点找不到源码,把 cwd 设置为 workspaceFolder 才能找到
但希望能在不同的工作路径下调试程序
修改cwd后,调试能够找到源码
No response
The text was updated successfully, but these errors were encountered:
set_rundir 可以自己 xmake.lua 直接配置
Sorry, something went wrong.
set_rundir 后,如果不把 launch.js 中 cwd 配置删除,还是用的 cwd 路径 删了之后,源码用的似乎是绝对路径导致找不到源码(实际应该在 ./src/panda 而不是 /src/panda)
{ "name": "XMake Debug", "type": "xmake", "request": "launch", "target": "panda", "stopAtEntry": false }
F5 运行会一直报这个错,也重新运行 xmake 重新编译过
No branches or pull requests
Xmake 版本
xmake v2.7.9+20230523
操作系统版本和架构
Linux 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
描述问题
launch.json 配置如下
调试时断点找不到源码,把 cwd 设置为 workspaceFolder 才能找到
![image](https://private-user-images.githubusercontent.com/4232511/245660587-30d8bfc5-dba5-4d07-8df2-057b9f62dd19.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4MDA1NDEsIm5iZiI6MTcxOTgwMDI0MSwicGF0aCI6Ii80MjMyNTExLzI0NTY2MDU4Ny0zMGQ4YmZjNS1kYmE1LTRkMDctOGRmMi0wNTdiOWY2MmRkMTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDFUMDIxNzIxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGM0MTdhZmMxNjkwMzBlMTQ3NjQ5MjcwMGEyY2I1NmExMTZhZmVmMGRhYzRjY2RhNTk5YWFlNTgxN2U3OTJlOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.vNSzlsu02tt1q2IjEy8pXpeutSvvK_KdlebHvc6AKdU)
但希望能在不同的工作路径下调试程序
期待的结果
修改cwd后,调试能够找到源码
工程配置
No response
附加信息和错误日志
No response
The text was updated successfully, but these errors were encountered: