-
-
Notifications
You must be signed in to change notification settings - Fork 4
Advanced Usage
Sukesh Ashok Kumar edited this page Jun 25, 2020
·
4 revisions
Let us try some advanced use case scenarios.
You need extra files in the local application folder for these windbg commands to work
Read about it here > Setup for automation
// Create Debugger instance and call Execute for any Windbg Command
using (DbgEngine dbg = new DbgEngine(DumpFileName))
{
Console.WriteLine(dbg.Execute(".time"));
Console.WriteLine(dbg.Execute(".sympath"));
Console.WriteLine(dbg.Execute(@".extpath+ [c:\path-to-windbg-extensions]"));
Console.WriteLine(dbg.Execute(".load [extension-name]"));
Console.WriteLine(dbg.Execute("![extension-command]"));
}
Practical usage of AutoDebug would be to redirect output to a text file
C:\AutoDebug>autodebug [memory-dump-file-name] > result.txt
Learn more about other projects @ https://sukesh.me