Configure Mex Extension on WinDBG: Windows Debugging Part 5

Basic Windows Debugging - Part 5: Configuring Mex Extension on WinDBG

In this article, we are going to set up an Extension Debugger which is going to make our life easier.

Please note that this is the 3rd Article under the Basic Windows Debugging. Previous Articles are:

Download Link:

MS Link to download: https://www.microsoft.com/en-us/download/details.aspx?id=53304

Once download you can follow the below install instructions:

  1. Download the mex.exe archive. 

Basic Windows Debugging - Part 5: Configuring Mex Extension on WinDBG

 2. Open the File and Accept the License:

Basic Windows Debugging - Part 5: Configuring Mex Extension on WinDBG

 3. Extract to any folder you want. For reference i have taken C:\Mex

Basic Windows Debugging - Part 5: Configuring Mex Extension on WinDBG

 4. Once done go to the folder where you have saved the file and open the Zip File. You can now extract the x64 or x86 version of the DLL.

 

Loading the Extension in WinDBG Preview:

Open WinDBG Preview and with a Dump that you want to explore. In case if you don’t have the dump right now, I will recommend you to keep the steps with you as we will be using them later:

.load C:\Mex\mex.dll

Basic Windows Debugging - Part 5: Configuring Mex Extension on WinDBG

Once done you can try to run the below command and it should work:

!mex.help

Basic Windows Debugging - Part 5: Configuring Mex Extension on WinDBG

 

Now if you are seeing that the Debugee is not connected and unable to run the command it is fine. We can only run it while the debugger is connected to a dump or process. We are going to do this in the Next Article.

 

Ashutosh Dixit

I am currently working as a Senior Technical Support Engineer with VMware Premier Services for Telco. Before this, I worked as a Technical Lead with Microsoft Enterprise Platform Support for Production and Premier Support. I am an expert in High-Availability, Deployments, and VMware Core technology along with Tanzu and Horizon.

Leave a Reply