Windbg Extension Netext User Guide "1"----netext Introduction

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.