惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
D
DataBreaches.Net
Microsoft Security Blog
Microsoft Security Blog
V
Visual Studio Blog
GbyAI
GbyAI
美团技术团队
云风的 BLOG
云风的 BLOG
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
博客园 - 叶小钗
Engineering at Meta
Engineering at Meta
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
宝玉的分享
宝玉的分享
阮一峰的网络日志
阮一峰的网络日志
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
U
Unit 42
P
Proofpoint News Feed
V
V2EX

博客园 - a-peng

My post test IE inline edit how to make hidden element actually hide EntityFramework4.1 Mapping Asp.Net Mvc 3.0 IOC与AOP Custom Date and Time Format Strings group by Year(CreatedDate), Month(CreatedDate) 用sql, entity sql (linq表达式好像挺复杂) asp.net life cycle OH MY GOD! 我的后台页面都被IE可缓存了。。。 编译器错误消息: 类型“System.Data.Objects.DataClasses.EntityObject”在未被引用的程序集中定义。 让IFrame自适应高度 让IE8使用IE7兼容模式运行 - a-peng - 博客园 Visual Studio 2008 Html Designer无法加载 修改SQLServer2008数据表无法提交 jQuery plugin LazyForm定制您的CheckBox Radio和Select [转载] [翻译]在ASP.NET MVC中使用TDD与依赖注入 Asp.Net Mvc使用Ajax.BeginForm上传文件Request.Files始终为empty Asp.Net Mvc Ajax偏方 太疯狂了:Teleport Pro......It's incredible.
Windbg
a-peng · 2011-01-21 · via 博客园 - a-peng

1. Download Windbg

www.windbg.org

2. sos.dll and mscordacwks.dll
sos.dll
--------------------
http://msdn.microsoft.com/zh-cn/library/bb190764(vs.80).aspx
SOS 调试扩展允许您查看有关在公共语言运行库内运行的代码的信息。 例如,可以使用 SOS 调试扩展显示有关托管堆的信息、查找堆损坏情况、显示运行库所使用的内部数据类型以及查看有关在运行库内运行的所有托管代码的信息。帮助您在 WinDbg.exe 调试器和 Visual Studio 中调试托管程序。

mscordacwks.dll
--------------------
http://stackoverflow.com/questions/670725/mscordacwks-dll-and-mscorwks-dll-confusions

mscorwks is the main MS CLR implementation.

mscordacwks provides a data-access abstraction over the CLR details, so that debuggers (such as SOS) don't need to know too much about the internals of mscorwks

3. Command
01010101 指代内存地址

> .load sos.dll
> .load mscordacwks.dll

> !help
> !DumpDomain 列出所有Domain
> !DumpDomain 01010101 列出01010101 Domain的详细信息
> !SaveModule 01010101 C:\Test.dll 将Module 01010101保存成dll可以使用Reflector查看
> !Name2EE * ConsoleApplication1.Program 遍历所有已加载模块,查看ConsoleApplication1.Program类型
> !Name2EE ConsoleApplication1.exe!ConsoleApplication1.Program 从ConsoleApplication1.exe中查看ConsoleApplication1.Program类型
> !DumpMD 010101 查方法
> !DumpClass 010101 查类
> !do 010101  查值

> .time
> !threadpool
> !threads
> ~3s ID为3的线程
> !clrstack 调用堆栈
> !dumpmt -md 010101 查看方法描述符,会有相关调用堆栈