Brief introduction
MEX WinDbg for debugging extensions can help you simplify common debugging tasks and provides powerful text filtering capabilities for the debugger. This extension is widely used Microsoft support engineer troubleshooting process applications.
Download and install
- Download mex.exe archive. Download https://www.microsoft.com/en-us/download/details.aspx?id=53304
- Unzip to any folder.
- Use the following command "MEX Debugging Extension for WinDbg" is loaded into the debugger: .load (extracted folder) \ MEX.dll.
After the download, unzip, there are two directories, X64 and X86, it loaded according to their needs, at present we mainly use X64. Extended Copy this proposal directly to Windbg run directory.
Using help
After loading the windbg, enter ! Mex help command to get help
We can see already classified display help information, click on one to view detailed information, such as "General"
Example of use
!clrstack2
This command is used to display the managed call stack for the current thread.
!dae
This command is DumpAllExceptions acronym. It lists all the abnormal memory dump collected.
!us
This command is UniqueStacks abbreviation, which is responsible for the call stack lists all the objects in the thread packet.
! Mex.writemodule -a -p "destination path"
This command is used to extract all binary files used by the application to a specific path.