1.  
  2. windbg ANSI Command Tree 1.0
  3. title {"Microshaoft Commands"}
  4. body
  5. {"cmdtree"}
  6. {"Microshaoft.WinDbg.CmdTree.txt"} {".cmdtree microshaoft.windbg.cmdtree.txt"}
  7. {"SOS Commands"}
  8. {"Load SOS and SOSEX"} {".loadby sos mscorwks;.load sosex"}
  9. {"Microshaoft Load .NET v4.0+ sos.dll"} {".load C:\Windows\Microsoft.NET\Framework64\v4.0.30319\SOS.dll"}
  10. {"Microshaoft Load .NET v4.0+ mscorwks.dll"} {".load C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorwks.dll"}
  11. {"Microshaoft Load .NET v3.5- sos.dll"} {".load C:\Windows\Microsoft.NET\Framework64\v2.0.50727\SOS.dll"}
  12. {"Microshaoft Load .NET v3.5- mscorwks.dll"} {".load C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll"}
  13. {"PSSCOR"}
  14. {"Microshaoft Load .NET v4.0+ AMD64 psscor4.dll"} {".load D:\WinDbg\Psscor\psscor4\amd64\psscor4.dll"}
  15. {"Microshaoft Load .NET v3.5- AMD64 psscor2.dll"} {".load D:\WinDbg\Psscor\psscor2\amd64\psscor2.dll"}
  16. {"Modules"}
  17. {"All Modules"} {"lm D sm"}
  18. {"Loaded Modules"} {"lmo D sm"}
  19. {"Loaded Modules (verbose)"} {"lmvo D sm"}
  20. {"Modules w/o symbols"} {"lme D sm"}
  21. {"Threads"}
  22. {"Managed Threads"} {"!threads"}
  23. {"Native Threads"} {"~"}
  24. {"Thread Pool Threads"} {"!threadpool"}
  25. {"Sync Block Deadlocks"} {"!dlk"}
  26. {"Stacks"}
  27. {"Current Managed Stack"} {"!clrstack"}
  28. {"DumpObj"} {"!do ###"}
  29. {"Current Managed Stack Parameters and Locals"} {"!vars -w"}
  30. {"Current Native Stack"} {"kP"}
  31. {"Current Dump Stack"} {"!dumpstack"}
  32. {"All Managed Stacks"} {"~*e!clrstack"}
  33. {"All Managed Stack Parameters and Locals"} {"~*e!vars -w"}
  34. {"All Native Stacks"} {"~*kP"}
  35. {"All Dump Stacks"} {"!eestack"}
  36. {"Memory"}
  37. {"Stack Objects"} {"!dso"}
  38. {"GC Heap"} {"!eeheap -gc"}
  39. {"Heap Stats"} {"!dumpheap -stat"}
  40. {"Objects > 500 bytes"} {"!dumpheap -min 500"}
  41. {"Objects > 1000 bytes"} {"!dumpheap -min 1000"}
  42. {"Gen 2 Objects"} {"!dumpgen -stat 2"}
  43. {"Common Commands"}
  44. {"Information"}
  45. {"Time of dump"} {".time"}
  46. {"Process being debugged"} {"|"}
  47. {"Dump Location"} {"||"}
  48. {"Create server on port 9999"} {".server tcp:port=9999"}
  49. {"Show remote connections"} {".clients"}
  50. {"Process Environment Block"} {"!peb"}
  51. {"Logging"}
  52. {"Open Log"} {".logopen /t /u /d"}
  53. {"Close Log"} {".logclose"}
  54. {"Modules"}
  55. {"All Modules"} {"lm D sm"}
  56. {"Loaded Modules"} {"lmo D sm"}
  57. {"Loaded Modules (verbose)"} {"lmvo D sm"}
  58. {"Modules w/o symbols"} {"lme D sm"}
  59. {"Stacks"}
  60. {"Set frame length to 2000"} {".kframes 2000"}
  61. {"Dump current stack w/ DML"} {"kpM 1000"}
  62. {"Dump stacks without private info"} {"knL 1000"}
  63. {"Dump stacks with all parameters"} {"kPn 1000"}
  64. {"Dump stacks (distance from last frame)"} {"kf 1000"}
  65. {"Dump stacks with Frame Pointer Omission"} {"kvn 1000"}
  66. {"Dump all stack"} {"~*kbn 1000"}
  67. {"Dump unique stacks"} {"!uniqstack -pn"}
  68. {"Thread environment block"} {"!teb"}
  69. {"Move to next frame"} {".f+"}
  70. {"Move to previous frame"} {".f-"}
  71. {"Memory"}
  72. {"Dump heaps"} {"!heap -a"}
  73. {"Automated Task"}
  74. {"!analyze"} {"!analyze -v"}
  75. {"Locks"} {"!ntsdexts.locks"}
  76. {"CPU time for User and Kernel Mode"} {"!runaway 7"}
  77. {"Managed"}
  78. {"Load sos"} {".loadby sos mscorwks"}
  79. {"Microshaoft Load .NET v4.0+ sos.dll"} {".load C:\Windows\Microsoft.NET\Framework64\v4.0.30319\SOS.dll"}
  80. {"Microshaoft Load .NET v4.0+ mscorwks.dll"} {".load C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorwks.dll"}
  81. {"Microshaoft Load .NET v3.5- sos.dll"} {".load C:\Windows\Microsoft.NET\Framework64\v2.0.50727\SOS.dll"}
  82. {"Microshaoft Load .NET v3.5- mscorwks.dll"} {".load C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll"}
  83. {"clrstack"} {"!clrstack"}
  84. {"Threads"} {"!threads"}
  85. {"Stack Objects"} {"!dso"}
  86. {"Exceptions"} {"!dae"}
  87. {"Crash Dump Analysis Checklist (www.dumpanalysis.org)"}
  88. {"General"}
  89. {"Versions and locations"} {"version"}
  90. {"Set longer stack trace"} {".kframes 100"}
  91. {"Application crash or hang"}
  92. {"Default analysis (crash)"} {"!analyze -v"}
  93. {"Default analysis (hang)"} {"!analyze -v -hang"}
  94. {"Switch to x86 architecture"} {".load wow64exts; .effmach x86"}
  95. {"Critical sections (locked)"} {"!locks"}
  96. {"Modules"} {"lmv"}
  97. {"Threads (all)"} {"~*kv 250"}
  98. {"Threads (unique)"} {"!uniqstack"}
  99. {"Gflags"} {"!gflag"}
  100. {"Time consumed by thread"} {"!runaway"}
  101. {"PEB"} {"!peb"}
  102. {"TEB"} {"!teb"}
  103. {"Hooked functions (ntdll)"} {"!chkimg -lo 50 -d !ntdll -v"}
  104. {"Hooked functions (kernel32)"} {"!chkimg -lo 50 -d !kernel32 -v"}
  105. {"Hooked functions (user32)"} {"!chkimg -lo 50 -d !user32 -v"}
  106. {"Hooked functions (ALL)"} {"!for_each_module !chkimg -lo 50 -d !${@#ModuleName} -v"}
  107. {"Exception handlers"} {"!exchain"}
  108. {"Computer name"} {"!envvar COMPUTERNAME"}
  109. {"Stack of exception thread"} {"~#kv 250"}
  110. {"Stack of current thread"} {"~.kv 250"}
  111. {"Switch to thread"}
  112. {"#0"} {"~0s"}
  113. {"#1"} {"~1s"}
  114. {"#2"} {"~2s"}
  115. {"#3"} {"~3s"}
  116. {"#4"} {"~4s"}
  117. {"#5"} {"~5s"}
  118. {"#6"} {"~6s"}
  119. {"#7"} {"~7s"}
  120. {"#8"} {"~8s"}
  121. {"#9"} {"~9s"}
  122. {"System hang"}
  123. {"Default analysis"} {"!analyze -v -hang"}
  124. {"ERESOURCE contention"} {"!locks"}
  125. {"Processes and virtual memory"} {"!vm 4"}
  126. {"Sorted pool consumption (paged)"} {"!poolused 4"}
  127. {"Sorted pool consumption (nonpaged)"} {"!poolused 3"}
  128. {"Waiting threads"} {"!stacks"}
  129. {"Critical system queues"} {"!exqueue f"}
  130. {"I/O"} {"!irpfind"}
  131. {"The list of all thread stack traces"} {"!process 0 ff"}
  132. {"Critical sections for current process"} {"!ntsdexts.locks"}
  133. {"Sessions"} {"!session"}
  134. {"Processes"} {"!process 0 0"}
  135. {"Running threads"} {"!running"}
  136. {"Ready threads"} {"!ready"}
  137. {"DPC queues"} {"!dpcs"}
  138. {"The list of APCs"} {"!apc"}
  139. {"Internal queued spinlocks"} {"!qlocks"}
  140. {"Computer name"} {"dS srv!srvcomputername"}
  141. {"Switch to processor"}
  142. {"#0"} {"~0s"}
  143. {"#1"} {"~1s"}
  144. {"#2"} {"~2s"}
  145. {"#3"} {"~3s"}
  146. {"#4"} {"~4s"}
  147. {"#5"} {"~5s"}
  148. {"#6"} {"~6s"}
  149. {"#7"} {"~7s"}
  150. {"BSOD"}
  151. {"Default analysis"} {"!analyze -v"}
  152. {"Processes and virtual memory"} {"!vm 4"}
  153. {"Bugcheck callback data (prior to Windows XP SP1)"} {"!bugdump"}
  154. {"Bugcheck secondary callback data"} {".enumtag"}
  155. {"Computer name"} {"dS srv!srvcomputername"}
  156. {"Microshaoft .NET"}
  157. {"show objects on current stack"} {"!dumpstackobjects"}
  158. {"show ThreadPool running"} {"!threadpool"}
  159. {"show all threads running time utilization"} {"!runaway"}
  160. {"gc handles"} {"!gchandles"}
  161. {"go to thread ~#s"} {"~1s"}
  162. {"!DumpStack [-EE] [top stack [bottom stack]]"} {"!dumpstack"}
  163. {"show class instance member value !DumpVC <MethodTable address> <address>"} {"!DumpVC"}
  164. {"show managed heaps"} {"!eeheap -gc"}
  165. {"show heaps memory statistic"} {"!dumpheap -min 200 -stat"}
  166. {"show Byte array heap memory usage"} {"!dumpheap -type Byte[] -min 200"}
  167. {"show managed heap's MethodTable objects !dumpheap -mt <MethodTable address>"} {"!dumpheap -mt"}
  168. {"show object reference info !GCRoot [-nostacks] <Object address>"} {"!gcroot"}
  169. {"show object detail !DumpObj [-nofields] <object address>"} {"!do"}
  170. {"show data object detail !da <address>"} {"!da"}
  171. {"show all objects in current stack !DumpStackObjects [-verify] [top stack [bottom stack]]"} {"!dso"}
  172. {"show object size !ObjSize [<Object address>]"} {"!objsize"}
  173. {"!PrintException [-nested] [<Exception object address>]"} {"!pe"}

Microshaoft WinDbg cmdtree的更多相关文章

  1. WinDbg常用命令系列---.cmdtree

    .cmdtree 简介 使用形式 .cmdtree cmdfile 参数 cmdfile命令文件,包含多个你需要的命令.必须是一个文本档 使用步骤 1.使用命令创建文本文件test.wl,使用以下示例 ...

  2. Windbg Extension NetExt 使用指南 【3】 ---- 挖掘你想要的数据 Managed Heap

    摘要 : NetExt中有两个比较常用的命令可以用来分析heap上面的对象. 一个是!wheap, 另外一个是!windex. !wheap 这个命令可以用于打印出heap structure信息. ...

  3. 透过WinDBG的视角看String

    摘要 : 最近在博客园里面看到有人在讨论 C# String的一些特性. 大部分情况下是从CODING的角度来讨论String. 本人觉得非常好奇, 在运行时态, String是如何与这些特性联系上的 ...

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

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

  5. Windbg Extension NetExt 使用指南 【1】 ---- NetExt 介绍

    摘要 : 在使用WINDBG做debugging的时候,需要一个好的工具帮助进行数据分析. 最常见的extension包括SOS, PSSCOR.  NetExt则是另外一种提供了丰富命令功能的deb ...

  6. Windbg跟踪临界区的BUG

    最近跟踪了一个程序的界面卡死问题,该卡死偶尔出现,在抓到一次dump后用windbg载入分析,打印出函数调用堆栈后,一眼可以看出是临界区死锁了. 代码: 0:000:x86> kb ChildE ...

  7. 使用Windbg在XP下Heap追踪失败的原因

    1.故事背景      最近同事的代码中碰到一个bug会导致奔溃的bug,从dump上看是由于某个对象的堆内存指针被释放了,但代码仍调用了该对象指针的虚函数,从而引起内存访问违法崩溃,由于该类被大量使 ...

  8. Windbg调试命令详解

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

  9. windbg运行

    运行起来会提示windbg is running. BUSY 这个是正常运行的状态,只有发生异常,或者被指定断点,才会中断.

随机推荐

  1. Debian上安装Apache+Django全过程

    -->start sudo apt-get install apache2 libapache2-mod-wsgi #https://wiki.debian.org/zh_CN/Apache s ...

  2. 搭建Solr集群的推荐方案

    之前介绍过2篇SolrCloud的部署流程,第一个是使用安装脚本的方式进行抽取安装,启动比较方便,但是会创建多个目录,感觉比较乱:第二个是官方教程上提供的方法,使用比较简单,直接释放压缩包即可,并且启 ...

  3. Zookeeper集群服务部署

    Zookeeper是一个分布式.开源的分布式应用程序协调服务,是Google的Chubby的开源实现,也是和Hadoop.Hbase相互配合的重要组件,作用就是为分布式应用程序提供一致性服务,包括配置 ...

  4. [转]Android How to Download and Make Volley.jar

    原文来自:http://tips.androidhive.info/2015/08/android-how-to-download-and-make-volley-jar/   1 Comment . ...

  5. hdu 1972.Printer Queue 解题报告

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1972 题目意思:需要模拟打印机打印.打印机里面有一些 job,每个job被赋予1-9的其中一个值,越大 ...

  6. JS里设定延时:js中SetInterval与setTimeout用法

     js中SetInterval与setTimeout用法 JS里设定延时: 使用SetInterval和设定延时函数setTimeout 很类似.setTimeout 运用在延迟一段时间,再进行某项操 ...

  7. windows下Emacs的安装与配置

    1.下载 到这个网址可以下载到Emacs的windows版本:http://ftp.gnu.org/pub/gnu/emacs/windows/ 只需要一个压缩文档,如emacs-23.2-bin-i ...

  8. 【leetcode】Implement strStr() (easy)

    Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle ...

  9. UUID UDID

    Google搜索关键字Difference between UUID and UDID,在stackoverflow看见解释,我翻译过来,如下所述. UUID(Universally Unique I ...

  10. Spring面向切面编程(AOP)方式二

    使用注解进行实现:减少xml文件的配置. 1 建立切面类 不需要实现任何特定接口,按照需要自己定义通知. package org.guangsoft.utils; import java.util.D ...