WinDbg getting started tutorial

Source: Internet
Author: User
Tags microsoft website

From: gray fox s Blog

Introduction

In my career, I saw that most of us useVisual StudioInstead of using many other free debuggers. You may have many reasons to use such a debugger. For example, you do not have a development environment installed on your home machine, but a program crashes again and again. In fact, according to the stack'sDumpYou can determineIEIs the crash caused by a third-party plug-in.

ForWinDbgSo far, I have not found a good quick start tutorial. This article discusses with examplesWinDbg. First, let's assume that you are familiar with the Basic Debugging concepts:Stepping in, stepping out,The basic concepts of breakpoint and remote debugging.

Note: This is a getting started document. You can read and start using it.WinDbg.If you have any questions about specific commands, referWinDbg. You can use the commands mentioned in this article in any debugger provided by Microsoft, suchVSIn the command line window.

This article is based onWinDbg 6.3.

This is only the first article in a series of articles about debugging technology. In the next article, I will explain how to write extensions for the debuggerDLL.

Debugger Overview

The following describes the debugger you can download from the Microsoft Website:

·KD-The kernel debugger. You can use it to debug system problems such as blue screens. It is indispensable to develop a device driver.

·CDB-Command Line debugger. This is a command line program

·NTSD-NTDebugger. This is a user-mode debugger that can be used to debug user-mode applications. It is actuallyCDBOfWindows UIEnhanced.

·WinDbg-Use a prettyUIPackedKDAndNTSD.WinDbgYou can debug the kernel mode or user-mode programs.

·VS, VS.net-Use the sameKDAndNTSDThe same debugging engine andWinDbgProvides a more functional interface.

Comparison between debuggers

Function

KD

NTSD

WinDbg

Visual Studio. NET

Kernel mode debugging

Y

N

Y

N

User mode debugging

 

Y

Y

Related Article

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.