Skip to content
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

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

Open
howmp opened this issue Dec 18, 2024 · 1 comment

Comments

@howmp
Copy link

howmp commented Dec 18, 2024

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:

type: "lldb",

debugTest:

@howmp
Copy link
Author

howmp commented Dec 18, 2024

After installing CodeLLDB and setting the environment variable LLDB-USE-NATIVE-PDBREADER=1, the “lldb” type can work normally on Windows

ref: ziglang/zig#22039

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant