命令 解释
.cls 清空命令窗口屏幕
.load dllfullpath 加载debugger扩展dll如SOS sosex psscor。
.loadby dll moduleName 加载debugger扩展dll, 该扩展dll与所指定的module的dll在同一目录下。例如.loadby sos clr
.sympath+ symbol path 添加符号文件路径
.sympath symbolpath1;symbolpath1 设置符号文件,如果没有加参数则会显示当前的符号文件设置
.hh command 在帮助文档中显示该命令的帮助信息
lm 列出目前加载的模块
![ExtensionDLL.]help [-v][CommandName] 显示从扩展dll中导出的命令帮助信息
~threadIds 切换到thread id所指定的线程
~ 列出所有线程
.dump dump进程,一般使用.dump /ma或者.dump /mf。可以使用.dump /?查看帮助信息
!threadpool 查看线程池的信息
!runaway 查看线程运行时间信息
!clrstack 查看clr线程栈信息
!Name2EE <module name> <type or method name>
!Name2EE <module name>!<type or method name>
从方法名或者类名获得他的方法表和EEClass
!DumpMT [-MD] <MethodTable address>  输出在类中定义的方法列表
!DumpMD <MethodDesc address> 列出方法描述信息
!IP2Md  <Code address> 从managed代码地址获得方法描述
k 显示线程的stack frame信息
!DumpIL <Managed DynamicMethod object> |
        <DynamicMethodDesc pointer> |
        <MethodDesc pointer> |
        /i <IL pointer>

输出和托管code的IL代码
!DumpDomain [<Domain address>]
 
dump应用程序域相关的信息
!DumpAssembly <Assembly address>
 
输出assembly的相关信息
!SaveModule <Base address> <Filename>  This command allows you to take a image loaded in memory and write it to a
file
!EEHeap [-gc] [-loader]  enumerates process memory consumed by internal CLR data structures. You
can limit the output by passing "-gc" or "-loader". All information will be
displayed otherwise.
 
!DumpHeap  输出垃圾收集堆相关的信息
!GCRoot [-nostacks] <Object address>  !GCRoot looks for references (or roots) to an object. These can exist in four
places:

1. On the stack
   2. Within a GC Handle
   3. In an object ready for finalization
   4. As a member of an object found in 1, 2 or 3 above.

.prefer_dml sets the default behavior for commands that are capable of providing output in the Debugger Markup Language (DML) format. 
.chain 列出所有的windbg扩展dll信息
!sosex.refs objAddr

Lists all references held by the specified object

Lists all references to the specified object (searches heaps, stacks, registers, handle tables and the freachable queue)

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

.Net Memory -- Windbg基本命令的更多相关文章

  1. windbg基本命令

    1, .reload k 当前调用堆栈.u 当前正在执行的代码. 2, ~ 查看被调试进程中的线程信息每一行是一个线程的信息.第一行中,0 表示这个进程的编号:1ff4.1038 是 16 进制数字, ...

  2. Windbg基本命令应用总结

    .cordll -ve -u -l //reload core dlls ------加载下载系统文件符号的URL---------- .sympath SRV*C:\Symbols*http://m ...

  3. Windbg 脚本命令简介 二, Windbg command

    Windbg  脚本命令简介 二, Windbg  script command $<, $><, $$<, $$><, $$>a< (Run Scri ...

  4. 【NX二次开发】NX内部函数,libugui.dll文件中的内部函数

    本文分为两部分:"带参数的函数"和 "带修饰的函数". 浏览这篇博客前请先阅读: [NX二次开发]NX内部函数,查找内部函数的方法 带参数的函数: bool A ...

  5. Windbg Extension NetExt 使用指南 【2】 ---- NetExt 的基本命令介绍

    摘要 : 本章节介绍NetExt常用的命令. 并且对SOS进行一些对比. NetExt的帮助 要想玩好NetExt, 入门就得看帮助. 看NetExt的帮助可以调用!whelp 命令. 这样hi列举出 ...

  6. Windbg + .Net .NET Memory Profiler 排查内存泄露

    这是一个Winform程序,用于项目中的定时运算.症状是,运行一段时间后,内存持续上升.如一天内就能够达到300M. 打开.Net Memory Profiler,监控该程序,一段时间后,看到该程序产 ...

  7. Windbg找出memory leak的一种笨办法

    以下内容是转自 http://www.cnblogs.com/fbird/p/5889596.html 以前做项目碰到过一个问题,在客户的站点上面发现有严重的内存泄漏.幸运的是我们找到了重现的步骤,一 ...

  8. Windbg Memory(内存)窗口的使用

    在 WinDbg 中,可以查看和编辑内存,通过输入命令或通过使用内存窗口. 内存窗口的打开 通过菜单View-->Memory 通过快捷键Alt+5 通过工具栏 使用内存窗口 通过上面方式打开的 ...

  9. Windbg调试命令详解

    作者:张佩][原文:http://www.yiiyee.cn/Blog] 1. 概述 用户成功安装微软Windows调试工具集后,能够在安装目录下发现四个调试器程序,分别是:cdb.exe.ntsd. ...

随机推荐

  1. Homebrew -- Mac软件管家(套件管理yun……)

    也许是之前使用linux系统的时候总是习惯使用wget 在mac中只有curl,有点略显不习惯 于是乎某天在搜索mac开发者的时候发现了Homebrew这个东西 ok,是那么句话--惰性是人的天性 有 ...

  2. js中:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?

    <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8" ...

  3. keil中查看内存数据

    1.工具栏中 view->Memory Windows 然后  c:0 表示读取0地址开始的代码区数据  d:0 表示读取0地址开始的数据区数据  x:0表示读取0地址开始的外部数据区

  4. hadoop之MapReduce WordCount分析

    MapReduce的设计思想 主要的思想是分而治之(divide and conquer),分治算法. 将一个大的问题切分成很多小的问题,然后在集群中的各个节点上执行,这既是Map过程.在Map过程结 ...

  5. JSP学习笔记 - 源码 -- JSP Custom Tags -- JSP自定义标记

    NetBeans 项目demo下载地址>>  http://files.cnblogs.com/files/AndrewXu/JSPCustomTags.zip

  6. AngularJS中的控制器示例_2

    <!doctype html> <html ng-app="myApp"> <head> <script src="C:\\Us ...

  7. a标签href不跳转 禁止跳转

    a标签href不跳转 禁止跳转 当页面中a标签不需要任何跳转时,从原理上来讲,可分如下两种方法: 标签属性href,使其指向空或不返回任何内容.如: <a href="javascri ...

  8. 错误:指定的任务可执行文件位置 D:\Android\platform-tools\aapt.exe 无效

    android-apt-compiler: Cannot run program "D:\android-sdk\platform-tools\aapt 装上IntelliJ IDEA /下 ...

  9. 比较有用的log4j.properties

    转自   http://walsh.iteye.com/blog/314941 log4j.properties log4j.rootLogger=DEBUG,CONSOLE,DATABASE,FIL ...

  10. Check whether a given Binary Tree is Complete or not 解答

    Question A complete binary tree is a binary tree in which every level, except possibly the last, is ...