-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
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
Zig: debug with vscode #375
Comments
Zig + vscode 配置 debug 断点调试:
准备工作:
Debug 示例:
dev@dev:~/D/i/b/ziglings-solutions|solutions✓
➤ zig build 15
Compiling 015_for.zig...
Checking 015_for.zig...
Zig Build Result: /xxx/ziglings-solutions/zig-cache/o/a9333ffcfddf7b471e7e17163202b638/015_for
PASSED:
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug ex002",
// "program": "${workspaceFolder}/<executable file>",
"program": "${workspaceFolder}/zig-cache/o/61ece68b736d12a98d44010040aab147/002_std",
"args": [
"exercises/002_std.zig"
],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug ex015",
// "program": "${workspaceFolder}/<executable file>",
"program": "${workspaceFolder}/zig-cache/o/a9333ffcfddf7b471e7e17163202b638/015_for",
"args": [
"exercises/015_for.zig"
],
"cwd": "${workspaceFolder}"
}
]
}
|
1 |
4 similar comments
1 |
1 |
1 |
1 |
This was referenced Jul 31, 2022
Open
This was referenced Sep 9, 2022
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
related:
The text was updated successfully, but these errors were encountered: