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

Support Native Debugging out of the box

Open tiehuis opened this issue 4 years ago • 4 comments

zn42 on reddit mentioned their process for getting native debugging with breakpoints and the like working in vscode. https://www.reddit.com/r/Zig/comments/cl0x6k/debugging_zig_in_vscode/

This issue is for determining how might be best to implement this in this extension. I think it is fine for us to depend on other extensions for this, and I'd consider this debugging support to be opt-in if so. If we were even just to automate the setup that would go a long way to being more usable for the end-user.

I don't have any specific ideas in mind, and we don't necessarily need to do it the way suggested in the mentioned post, but it provides a good basis.

tiehuis avatar Aug 05 '19 11:08 tiehuis

any updates about this?

kfird214 avatar Feb 07 '22 21:02 kfird214

Anyone have debugging working on windows/vscode ? Would like to learn more about Zig, having option to put in breakpoints would be really helpful.

vegarringdal avatar Apr 26 '23 20:04 vegarringdal

Anyone have debugging working on windows/vscode ? Would like to learn more about Zig, having option to put in breakpoints would be really helpful.

https://github.com/kfird214/zig-vscode-template

kfird214 avatar Jun 25 '23 19:06 kfird214

I used lldb extension to debug. Only problem is the inspection of slice , and expression eval in watch panel

chaoyangnz avatar Aug 08 '23 20:08 chaoyangnz