windbgtips (@windbgtips) header
windbgtips (@windbgtips) profile picture

A collection of some tips & tricks for the world's best debugger

Know a cool trick ? Send me a DM !
Joined November 2018
Photo by windbgtips (@windbgtips)Photo by windbgtips (@windbgtips)Photo by windbgtips (@windbgtips)Photo by windbgtips (@windbgtips)Photo by windbgtips (@windbgtips)Photo by windbgtips (@windbgtips)Photo by windbgtips (@windbgtips)Photo by windbgtips (@windbgtips)Photo by windbgtips (@windbgtips)Photo by windbgtips (@windbgtips)
If you update WinDbg today (1.2504.15001.0), you might notice another icon in the View tab of the ribbon, one called "Parallel Stacks". While incredibly useful in its own right, this isn't just a parallel stacks view. It's the introduction of graph visualization for extensions!
4
59
2
174
21,167
Well... It's not quite KD, but WinDbg has supported debugging the Linux kernel via an EXDI connection for some time. Easiest setup is to enable the gdbserver on QEMU and use EXDI in WinDbg selecting "Linux" as the OS. I've source level stepped the Linux kernel doing that...
3
13
42
4,933
windbgtips retweeted
It's been a minute since we have released a new version of TTD! New version is now available (1.11.410) which fixes module selective recording, enables large queries via .Calls() and fixes some emulator bugs reported by our customers. aka.ms/ttd
13
1
26
3,923
windbgtips retweeted
I know I'll catch flack for not knowing this, but the Mex WinDbg extension is so cool! During dynamic analysis I needed to grab the exact version of a module from a target but didn't want to resume execution to fetch it since hitting the breakpoint was tricky. !writemodule FTW!
3
8
1
86
10,342
WinDbg has a few but very useful (undocumented) intrinsics directly usable from `dx`, such as: __iserror, __ignoreerror, __isnovalue. Also some functions in dbgeng.dll can be used for quick (wstr, str, mem) comparison , like _wcsnicmp, _wcsicmp, _stricmp, memicmp, etc.
1
4
1
20
1,905
This trick is particularly useful if you do not/cannot use `.ToDisplayString` 🙂
1
2
504
#WinDbg 1.2402.24001.0 is out on #winget with #GDB remote protocol support 🔥 All documented here 👇
4
16
3,484
If you spin your gdbserver with --multi (e.g.: gdbserver --multi localhost:1234), you can connect to it via the "Connect to Process Server" (same protocol string) and then see the process list and attach...
1
1
10
2,550
You can even tell us how to pull sources automatically from GitHub for your source level debugging... !addsourcemap <module> <local spec> <remote spec> as highlighted below. The db77...1c13 is the commit on master from which I built vim for this example.
2
7
1
33
8,843
Once you've connected, things should work very similarly to what you expect debugging a live Windows process. You can set breakpoints, single step, get locals, etc...
2
4
25
4,155
If you've ever wanted to live debug user mode Linux processes (e.g.: in WSL) from WinDbg, with 1.2402.24001.0, you can! Start up a gdbserver in WSL (e.g.: gdbserver localhost:1234 ./vim) and connect to it via WinDbg's "Connect to remote debugger"
12
95
9
302
81,877
windbgtips retweeted
I'm starting a series of WinDbg tutorial videos starting with the absolute basics. The first two videos cover how to install WinDbg and how to start a debugging session. augmend.com/replay/886e1f26-… augmend.com/replay/8e1ecc05-…
6
101
3
336
31,286
windbgtips retweeted
Here is a small WinDbg extension written in Rust 🦀 I am hoping it can serve as a template for people to get started 💪 github.com/0vercl0k/snapshot
3
39
2
175
12,865
windbgtips retweeted
Example (just record msvcrt.dll): ttd.exe -module msvcrt.dll ping.exe
2
4
11
2,854
🙌
Do you wish Time Travel Debugging was faster and more lightweight? Our latest version lets you decide exactly what you want recorded! Select modules to record or use the API for full control. Get your recording just the way you like it. Crusts optional. aka.ms/ttd
1
816
Thanks to @_hugsy_'s contributions, the kdmp-parser library is now available on PyPI and also supports the new kernel dump types (8, 9, 10) that appeared in WinDbg around ~2022 😱 Go check it out: github.com/0vercl0k/kdmp-par… / pypi.org/project/kdmp-parser… 🔥
10
44
4,479
windbgtips retweeted
WinDbgX tip: If you press Ctrl+Shift+B, you can open a hex viewer for a file. The data is virtualized so that it can handle any size file. Like this 334MB Windows.UI.Xaml.pdb file. It's somewhat undocumented because it was just a test bed for the memory window, but still useful.
3
12
74
7,475
`winget` FTW 🚀
New drop of TTD adds recording of 32-bit apps on 64-bit Intel/AMD machines and fixes EULA issues @timmisiak reported. aka.ms/ttd/download or tell winget you want to time travel!
2
3
1,597
📢 @_hugsy_ added Python (>=3.8) bindings to udmp-parser (github.com/0vercl0k/udmp-par…) and we think they are ready for testing! Go try them out 🔥 pypi.org/project/udmp-parser…
1
8
23
6,514
This is insanely cool: TTD + Binja ! Once again, an amazing piece of work by the team of @vector35
For those on the latest dev builds (>= 4337), make sure to check out the new TTD (Time Travel Debugging) support included in the built-in debugger! github.com/Vector35/debugger…
1
11
2,313