vscode-zig icon indicating copy to clipboard operation
vscode-zig copied to clipboard

The type of vscode.debugConfig should be configurable in zigDebug and debugTest

Open howmp opened this issue 1 year ago • 1 comments

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

howmp avatar Dec 18 '24 05:12 howmp

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

howmp avatar Dec 18 '24 11:12 howmp

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

fred21O4 avatar Aug 25 '25 02:08 fred21O4