# How is the Zig Debugger now?

**URL:** <https://ziggit.dev/t/how-is-the-zig-debugger-now/18061>\
**Category:** Help\
**Tags:** language\
**Created:** [October 23, 2026, 10:58am UTC](https://ziggit.dev/t/how-is-the-zig-debugger-now/18061 "2026-10-23T10:58:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickygai](https://ziggit.dev/user_avatar/ziggit.dev/rickygai/32/10387_2.png) [@rickygai](https://ziggit.dev/u/rickygai)\
**Post date:** [October 23, 2026, 10:58am UTC](https://ziggit.dev/t/how-is-the-zig-debugger-now/18061/1 "2026-10-23T10:58:33Z")

</div>

Windows 11 22H2 (OS Build 22621.6060)  
Visual Studio Code v1.143.1  
Zig v0.18.0

I checked this forum regarding debugging articles, not much solutions found.

Currently, I tested Zig with options:

zig build-exe -fllvm -target x86\_64-windows-gnu -O Debug test.zig -femit-bin=test.exe

zig build-exe -fllvm -target x86\_64-windows-msvc -O Debug test.zig -femit-bin=test.exe

and with VSCode launch.json:

```zig
"configurations": [
   {
   ...
      "type": "lldb", // also tested "cppvsdbg"
      "request": "launch",
   ...
   }
]

```

Both “type” of “lldb” and “cppvsdbg” cannot correctly show the variables added under “Watch” panel, I received something like below,

 ![image](https://ziggit.dev/uploads/default/original/2X/b/b5b4a86207c046c7b470312f62c618b74cbf6dd4.png)

Please advise

---

<div class="post-metadata">

**Author:** ![vulpesx](https://ziggit.dev/user_avatar/ziggit.dev/vulpesx/32/3989_2.png) [@vulpesx](https://ziggit.dev/u/vulpesx)\
**Post date:** [October 23, 2026, 11:32am UTC](https://ziggit.dev/t/how-is-the-zig-debugger-now/18061/2 "2026-10-23T11:32:58Z")

</div>

these threads may be helpful

> [@Debugging Zig (with a debugger)](https://ziggit.dev/t/debugging-zig-with-a-debugger/7160):
>
> Debugging Zig code is a bit of a dark art at present:. There’s no official documentation on the subject, and the lore involved is scattered among blog posts, video, Ziggit questions, the Discord, and so on. So I thought I’d start a topic as a place to share knowledge of the dark art. I also want to improve my own workflow here, so I’ll start with what I have working. VSCode and CodeLLDB I do most of my development in Neovim now (I use Neovim btw), but not debugging.. yet. For that I’m using …

> [@Zig Debugging with LLDB](https://ziggit.dev/t/zig-debugging-with-lldb/3931):
>
> Short example of degugging with LLDB. As an example, I will use a small program that I wrote for Rosetta Code: const std = @import("std"); const stdout = @import("std").io.getStdOut().writer(); pub fn rot(txt: []u8, key: u8) void { for (txt, 0..txt.len) |c, i| { if (std.ascii.isLower(c)) { txt[i] = (c - 'a' + key) % 26 + 'a'; } else if (std.ascii.isUpper(c)) { txt[i] = (c - 'A' + key) % 26 + 'A'; } } } pub fn main() !void { const ke…
