WinDebug 常用命令表【摘】
启动, 附加进程, 执行和退出(Starting, Attaching, Executing and Exiting)
=======================
|
Start -> All Programs -> Debugging Tools for Windows -> WinDBG |
启动 |
|
|
F6 |
attach to process |
附加到进程 |
|
Ctrl-Break |
interrupt debugee |
中断正在被debug的程序 |
|
.detach |
detach from a process |
脱离进程 |
|
g |
continue debugee execution |
继续执行被debug的程序 |
|
q |
exit WinDBG |
退出WinDBG |
获得帮助(Getting Help)
=======================
|
? |
help on commands that affect the debugee |
列出所有的内置命令和操作符 |
|
.help |
help on commands that affect the debugger |
列出所有的元命令 |
|
.hh command |
view the on line help file |
打开WinDBG的帮助文件 |
|
!help |
help on the extension dll at the top of the chain (e. g., SOS) |
列出扩展DLL中的扩展命令帮助 |
操纵命令(Issuing Commands)
=======================
|
up arrow, down arrow, enter |
scroll through command history |
浏览命令历史 |
|
Right mouse button |
paste into command window |
在命令窗口中粘贴 |
检查非托管环境(Examining the Unmanaged Environment)
=======================
|
lmf |
list loaded modules with full path |
列出已加载了的模块及其完整路径 |
|
lmt |
list loaded modules with last modified timestamp |
列出已加载了的模块和最后修改的时间戳 |
|
~ |
list unmanaged threads |
列出所有非托管线程 |
|
~thread s |
select a thread for thread specific commands |
|
|
!token -n |
view thread permissions |
|
|
k |
view the unmanaged call stack |
查看非托管调用栈 |
|
!runaway |
view thread CPU consumption |
显示每个线程占用的时间 |
|
bp |
set a breakpoint |
设置一个断点 |
|
.dump path |
dump small memory image |
创建一个小的dump内存镜像 |
|
.dump /ma path |
dump complete memory image |
创建一个完整的dump文件 |
使用Debuger DLL扩展(Working with Extension DLLs (e. g., SOS))
=======================
|
.chain |
list extensions dlls |
列出所有加载了的debugger extension |
|
.load clr10\sos |
load SOS for debugging framework 1.0 / 1.1 |
加载.net 1.1托管程序的debug扩展 |
|
.unload clr10\sos |
unload SOS |
卸载SOS |
|
.loadby sos mscorwks |
load SOS for debugging framework 2.0 |
加载.net 2.0的debug 扩展 |
SOS命令(SOS Commands)
=======================
|
!threads |
view managed threads |
查看所有托管线程 |
|
!clrstack |
view the managed call stack |
查看托管调用栈 |
|
!dumpstack |
view combined unmanaged & managed call stack |
查看非托管和托管结合的调用栈 |
|
!clrstack -p |
view function call arguments |
查看托管函数调用的参数 |
|
!clrstack –l |
view stack (local) variables |
查看托管栈的局部变量 |
|
!name2ee module class |
view addresses associated with a class or method |
查看某个类或方法的内存地址 |
|
!dumpmt –mdaddress |
view the method table & methods for a class |
查看指定地址的方法表和一个类的方法集 |
|
!dumpmd address |
view detailed information about a method |
显示指定地址的MethodDesc结构信息 |
|
!do address |
view information about an object |
显示某地址的对象的信息, 包括fields, EEClass, Method Table和object size |
|
!dumpheap –stat |
view memory consumption by type |
显示堆内存的使用 |
|
!dumpheap –min size |
view memory consumption by object when at least size |
查看堆内存使用, 忽略小于size字节大小的对象 |
|
!dumpheap –typetype |
view memory consumption for all objects of type type |
查看所有类型为type的对象的内存使用 |
|
!gcroot address |
view which object are holding a reference to address |
查看所有对指定地址的对象的引用 |
|
!syncblk |
view information about managed locks |
查看托管的锁(SyncBlock结构) |
SOS 2.0 命令(SOS 2.0 Commands)
========================
|
!bpmd module method |
set breakpoint |
在指定模块的某一指定的方法上设置断点 |
|
!DumpArray address |
view contents of an array |
查看数组中的元素 |
|
!PrintException |
view information about most recent exception |
格式化地显示最近的异常信息 |

WinDebug 常用命令表【摘】的更多相关文章
- Git教程(2)官方命令文档及常用命令表
http://www.cnblogs.com/angeldevil/archive/2013/11/26/3238470.html 1,官方命令文档 http://www.git-scm.com/do ...
- windebug常用命令
使用~查看所有线程 切换到一号线程:~1s 查看所有线程的托管堆栈 ~* e!clrstack 怎么查看,当前线程下,变量的信息? 对于托管代码而言,最核心的命令就是!do(dump object的 ...
- WinDBG 常用命令表[转]
启动, 附加进程, 执行和退出(Starting, Attaching, Executing and Exiting) ======================= Start -> Al ...
- git常用命令表
本文主要是用来记录一些在git管理的项目中常见的场景及其对应的命令,方便自己和他人使用的时候快速查询.如有不对,敬请指正. 查看某个git命令的帮助文档 git help [command] 查看各个 ...
- mysql 常用命令 | 表间 弱关联 join
show databases; use mhxy; select database(); show tables; desc account_list_175; ),(); select from_u ...
- docker-image container 基本操作 -常用命令
基本概念: container 容器.可以把每个 container 看做是一个独立的主机. container 的创建通常有一个 image 作为其模板.类比成虚拟机的话可以理解为 image 就是 ...
- MySQL处理数据库和表的常用命令
MySQL处理数据库和表的常用命令 [导读] 学习如何管理和导航MySQL数据库和表是要掌握的首要任务之一,下面的内容将主要对MySQL的数据库和表的一些常用命令进行总结,一些我们不得不掌握的命令,一 ...
- Git 常用命令速查表(图文+表格)
一. Git 常用命令速查 git branch 查看本地所有分支git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支git branch -r ...
- HBase表的基本结构和常用命令行操作
一.HBase表的基本结构 1.概述: 平时常见的MySQL.Oracle数据库都是传统型关系数据库,它们都是按行查询.按行存储:而HBase为非关系型数据库,它是按列存储的的. 在HBase插入数据 ...
随机推荐
- 一篇文章看懂spark 1.3+各版本特性
Spark 1.6.x的新特性Spark-1.6是Spark-2.0之前的最后一个版本.主要是三个大方面的改进:性能提升,新的 Dataset API 和数据科学功能的扩展.这是社区开发非常重要的一个 ...
- Dota兄订餐——静态代理(java)
理解并使用设计模式,能够培养我们良好的面向对象编程习惯,同时在实际应用中,可以如鱼得水,享受游刃有余的乐趣. 代理模式是比较有用途的一种模式,而且变种较多,应用场合覆盖从小结构到整个系统的大结构,Pr ...
- 关于这两天研究Java打印pdf方法的记录
这两天在研究Java调用打印机打印PDF文件的方法,学到了不少东西,特别来记录一下. 关于Java打印网上最多的而且也是Java正统的打印方法就是使用PrintService,一套比較标准的打印代码例 ...
- android EditText中的inputType
android 1.5以后添加了软件虚拟键盘的功能,所以在输入提示中将会有对应的软键盘模式 android中inputType属性在EditText输入值时启动的虚拟键盘的风格有着重要的作用.这也大大 ...
- 常用颜色大全---RGB值及中英文名称
■■■■■ #DC143C Crimson 深红/猩红 ■■■■■ #FFF0F5 LavenderBlush 淡紫红 ■■■■■ #DB7093 PaleVioletRed 弱紫罗兰红 ■■■■■ ...
- SAP OTR 字段维护 更改SAP的字段翻译
维护系统文本字段:SOTR_EDIT TC:SE63 在SAP用户选择屏幕中,用鼠标选定一个栏位后按F1键,能够看到SAP对其详细解释,通常这样的解释文本分为两部分,一部分为标题, ...
- Java程序员也应该知道的系统知识系列之(网卡,cpu,内存,硬盘,虚拟化)
https://yq.aliyun.com/articles/1718?spm=5176.100240.searchblog.16.UaGd04 https://yq.aliyun.com/artic ...
- log4j配置文件详解---转
使用步骤注意: 1. 从http://logging.apache.org/log4j/1.2/ 下载文件 2. 在src目录下加入log4j.properties,将jar包放入build -pat ...
- redis 多实例配置
(redis的安装, 配置, 登陆等基础不再多说, 网上很多资料的, 这里只说个人对redis多实例的理解与配置) 我自己使用的redis版本是 2.8.13, 环境是 ubuntu 个人对多实例的理 ...
- Windows与Linux文件共享
Windows与Linux文件共享 Samba服务器 安装Samba服务器 rpm –ivh /mnt/Packages/Samba-3.5.10-125.el6.i686.rpm 添加用户并修改密码 ...