Monday, February 28, 2011

PowerDbg v6.0 - Powering WinDbg with PowerShell

Debugging Toolbox - [PowerShell Script] PowerDbg v6.0 – Using PowerShell to Control WinDbg

"Last October the latest version of the PowerDbg tool was released, version 6.0. This release has major changes. For example, it is now easier to write scripts or otherwise just hack around the debugger, and includes the PowerDbgConsole, a bootstrapper designed to make setting up an interactive PowerDbg debugging session a one-liner. In addition, this new version is faster, easier to use, and has full 64 bit support.

For those new to PowerDbg, with this tool you can easily create PowerShell scripts to automate a WinDbg/CDB debugging session. You can use PowerDbg for Kernel Mode or User Mode, Post-Mortem Debugging or Live Debugging, either for native or managed code.

PowerShell has several advantages over the WinDbg Scripting Language, like:

  • Increased ease in creating scripts
  • Leverage in the .NET Framework
  • Debugging and tracing features
  • Code reuse through functions and cmdlets
  • Easier maintenance
  • Increased ease in building large scripts
  • Ease in formatting and displaying important information

PowerDbg is hosted in the CodePlex website and there you can find all the information you need about the new PowerDbg, so I’m just reusing the information from CodePlex here.




PowerShell'ing WinDbg, with the full source too... Now that's a NOT a case of the Monday's... :P


Related Past Post XRef:
Debug Analyzer.NET - A debugging utility, written in .Net, for .Net developers, to help debug .Net applications

One man’s debugging tale - How he hunts down a bug in NuPack, with his friends WinDbg and Reflector
Seems like it’s a WinDbg Day - Windows Kernel Debugging For Dummies
Blue Screen of Death (BSOD) Troubleshooting for Dummies (like me)
Mark Russinovich takes us along with him as he hunts an IE crash and teaching us how to fish along the way…

No comments: