News for hackers. Stuff that matters.
Re:Things you can do with a debugger but not with print debu... by coderatlarge on Tuesday September 09, 2025 @10:41PM (#45192521)
windbg used to offer scripting capabilities that teams could use to trigger validation of any number of internal data structures essentially at every breakpoint or watchpoint trigger. it was a tremendous way to detect subtle state corruption. and sharing scripts across teams was also a way to share knowledge of a complex binary that was often not encoded in asserts or other aspects of the codebase.
Re:Things you can do with a debugger but not with print debu... by bpye on Tuesday September 09, 2025 @10:55PM (#45192615)
This still exists? You can also use JavaScript to script/extend and there is a native code API too.

Note: I do work at MSFT, I have used these capabilities but I’m not on the debugger team.

https://learn.microsoft.com/en-us/windows-hardware/drivers/d...

https://www.timdbg.com/posts/whats-the-target-model/

https://github.com/microsoft/WinDbg-Samples/tree/master

Re:Things you can do with a debugger but not with print debu... by coderatlarge on Wednesday September 10, 2025 @01:08AM (#45193538)
thanks for the pointers glad to hear it’s all still there

i haven’t seen this type of capability used in too many companies tbh and it seems like a lot of opportunity to improve stability and debugging speed and even code exploration/learning (did i break something ?)

Re:Things you can do with a debugger but not with print debu... by delta_p_delta_x on Wednesday September 10, 2025 @03:50PM (#45202705)
WinDbg also has time-travel/record-replay debugging.
Re:Things you can do with a debugger but not with print debu... by coderatlarge on Thursday September 11, 2025 @02:59AM (#45208646)
that sounds like a super-powerful feature especially for multithreaded debugging though i’ve never used anything like it.