TGViewer
Блог* Блог* @dereference_pointer_there · 1.98K subscribers
Post #11009 834
#prog

GDB pretty printing w/ Python is really powerful, but also it's ridiculously high friction compared to Microsoft's .natvis.

Completely aside from any syntactic whatever, you can't (safely) load any ol' Python script in a project's repo, but you can safely load up associated .natvis files, which makes Microsoft's solution vastly superior for library users.

And there's really no reason that GDB and LLDB can't just implement .natvis support out of the box. (Yes, I know there are Python libraries that add a subset of .natvis support to GDB, but that doesn't solve the "out of the box" part at all.) Or hell, if they really hate Microsoft (who doesn't?) then implement their own declarative debug visualizer format.

(This post brought to you by me using Clang 22 for _Defer via mingw and now having to write *ing Python to make my pure C project comfortably debuggable.)


Source (вот вам и идея для PR в дебаггеры)
  • 👍 2
  • 🤔 1
More from @dereference_pointer_there
  1. Oct 3, 2026Re: I spent $220 on Google app ads and 60% of the installs were robots My favorite story:…
  2. Oct 3, 2026photo post
  3. Oct 3, 2026Source
  4. Oct 3, 2026photo post
  5. Oct 3, 2026#ml #meme
  6. Oct 2, 2026#prog #rust #article Generic Const Args and You Статья о текущем состоянии экспериментальн…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →