How to change the debug symbol format for zig build on windows

Hi all,

I’m new to zig. Trying to figure how to change the debug symbol format for zig build, it is giving me “.pdb”, I don’t think I can use that format for gdb debugger on windows.

Need some help on how to change it, and what format is available. (or its not supported yet).

Thank you.

1 Like

Hi @Ravin welcome to ziggit :slight_smile:

Try using lldb or WinDbg or any other debugger except gdb.

I know that this is not the answer that you expect. But PDB format is used exclusively in windows and gdb hackers do not implement PDB for their own reasons.

No problem. I was considering lldb anyways, just a bit troublesome for me to switch between Linux and windows tooling like that. Thank you.

1 Like

You can also use Visual Studio as a debugger. When it starts click “Open a project or solution” and select the “.exe” file you want to debug.

There’s also RemedyBG (RemedyBG by remedybg). This is a lightweight “handmade” debugger for windows. I use it when I don’t want to wait forever for Visual Studio to start :slight_smile:

I use the Rad Debugger on Windows. It works out of the box with the default pdb file that zig generates. It is an amazing debugger and it comes with a free license. GitHub - EpicGamesExt/raddebugger: A native, user-mode, multi-process, graphical debugger.

2 Likes

That is an interesting debugger. Being able to visualise data structure is so much needed.

Is there demo video showing how it works.

Ryan Fleury’s twitter is full of great videos of showing off Rad Debugger x.com

Hi, have you been able to debug with lldb on windows? No matter what I try, I’m never able to set breakpoints…

Sorry idk,

Gave up on zig, and using c++ ny. Lol. Using zig as cross compiler ny.

4 Likes