Absrtact: When using WinDbg to do debugging, a good tool is needed to help with data analysis. The most common extension include SOS, Psscor. Netext is another debugging extension that provides rich command functionality. Netext is mainly used for managed code analysis functions, has good support for ASP. NET, WCF, WIF, and provides a lot of common analysis commands. It covers most of the commands of SOS and Psscor, and provides more powerful data mining capabilities. In this series, I will introduce this feature.
Basic introduction
Netext Extension uses a debugging Extension developed by employees of Microsoft Corporation. is: http://netext.codeplex.com/
Netext is another debugging extension that provides rich command functionality. Netext is mainly used for managed code analysis functions, has good support for ASP. NET, WCF, WIF, and provides a lot of common analysis commands. It covers most of the commands of SOS and Psscor, and provides more powerful data mining capabilities.
Netext Extension does not require support from Extension such as SOS or Psscor. It uses the. NET debugging API directly. The following steps will show how to use this very powerful extension.
Pre-preparation
- You must first install the 32-bit and 64-bit versions of WinDbg. You can download it here: https://msdn.microsoft.com/en-us/library/windows/hardware/ff551063 (v=vs.85). aspx
- Download good netext:http://netext.codeplex.com/from the connection below
- Decompression Netext
- Copy the corresponding version of Netext to the appropriate WinDbg installation directory.
Basic operations
The following steps are a simple demo of how to load Netext into WinDbg and make a basic command call.
1. Open the WinDbg already installed.
2. After the WinDbg is open, click on the menu bar File–>open Crash Dump ...
3. Open an experimental DMP file and click Open.
4. When the DMP file is read, some basic information is displayed.
5. Inside the CLR runtime, you can determine the version of the. NET framework by checking the version information of Mscorwks.dll or Clr.dll. For details, refer to this link: https://msdn.microsoft.com/library/windows/hardware/ff540665 (v=vs.85). aspx
In general,. NET 3.5 and its previous versions, CLR runtime reads Mscorwks.dll. . NET 4.0 and later versions, CLR runtime reads Clr.dll.
To check the situation, you can execute the command lmv mCLR or LMV mmcorwks
If there is no information that contains this DLL, then the corresponding CLR Runtime is not there. For example, the following command LMV MCLR, if there is no display, indicates that. NET 4.0 is not in the load. In contrast, it should be. NET 4.0 or later.
6. Invoke the command. Load Netext, you will netext Extension load in. Before you can use the commands provided by this extension.
7. Netext provides a command similar to!do in SOS to dump the contents of an object. You can use the!netext.wdo command.
8. Not only that, Netext offers many very convenient commands. For example, for array processing. The Netext relative to SOS has a better performance. For example, the following example! The Netext.wdo command can display a three-dimensional array directly. This point of SOS and Psspor's presentation is not satisfactory.
Sonic Guo
Windbg Extension Netext User Guide "1"----netext Introduction