Windows 11 22H2 (OS Build 22621.6060)
Visual Studio Code v1.143.1
Zig v0.18.0
I checked this forum regarding debugging articles, not much solutions found.
Currently, I tested Zig with options:
zig build-exe -fllvm -target x86_64-windows-gnu -O Debug test.zig -femit-bin=test.exe
zig build-exe -fllvm -target x86_64-windows-msvc -O Debug test.zig -femit-bin=test.exe
and with VSCode launch.json:
"configurations": [
{
...
"type": "lldb", // also tested "cppvsdbg"
"request": "launch",
...
}
]
Both “type” of “lldb” and “cppvsdbg” cannot correctly show the variables added under “Watch” panel, I received something like below,
Please advise
vulpesx
2
these threads may be helpful