The type of vscode.debugConfig should be configurable in zigDebug and debugTest
In Windows, debug can only work properly when the type is cppvsdbg, like this
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Test",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/zig-out/tmp-debug-build/bin/test-xxx",
"cwd": "${workspaceFolder}"
}
]
}
zigDebug: https://github.com/ziglang/vscode-zig/blob/9f65aefd54163e99082cc6fe4b91373a4d7474dd/src/zigMainCodeLens.ts#L82 debugTest: https://github.com/ziglang/vscode-zig/blob/9f65aefd54163e99082cc6fe4b91373a4d7474dd/src/zigTestRunnerProvider.ts#L161
After installing CodeLLDB and setting the environment variable LLDB-USE-NATIVE-PDBREADER=1, the “lldb” type can work normally on Windows
ref: https://github.com/ziglang/zig/issues/22039
I would still be interested in this being configurable as I use lldb-dap over codelldb which provides the lldb-dap type instead of lldb