[Windbg Script] Tracing API calls

This is a very simple script, yet powerful script.

You can use it to see the APIs an application is using from your Windbg screen without using another tool. If you need more details from the APIs, just execute LogViewer.exe and open the .lgv file that is automatically created when you use this script.

 

Some screenshots:

Output file, with .LGV extension:

 

 

 

 

LogViewer.exe is part of Debugging Tools For Windows. It's in the same location you installed Windbg:

 

 

 

Opening the .LGV file using LogViewer.exe:

 

 

 

Source code for API_TRACING.TXT:

$$

$$ =============================================================================

$$ Trace APIs during the Debugging Session.

$$ Creates a log on Desktop and Windbg window.

$$ To see the more verbose log run logviewer.exe from Debugging Tools for Windows

$$ and open the file that has the .lgv extension.

$$ This file is inside LogExts on your desktop.

$$

$$ Compatibility: Win32, should work on Win64.

$$

$$ Usage: $$>< to run the program.

$$

$$ Roberto Alexis Farah

$$ Blog: https://blogs.msdn.com/debuggingtoolbox/

$$

$$ All my scripts are provided "AS IS" with no warranties, and confer no rights.

$$ =============================================================================

$$

!logexts.loge

!logexts.logc e *

!logexts.logo e v

!logexts.logb p

$$

$$ ====================================

$$ Logging is enabled for this process.

$$ ====================================

Read me.