如何使用VS2010分析.net dump

如何使用VS2010分析.net dump

分类: windows   163人阅读  评论(0)  收藏  举报

    使用windbg来分析windows平台上的.net程序crash产生的dump文件是一件很困难的事情,因为分析出来的结果都分装在.net里面,我们往往得不到有用的信息,进而就拿这种crash毫无办法。

    近来发现vs2010可以作为一个很好的工具来分析这种dump,因此记录下来,备忘。

    

I find Visual Studio is better tool to analyze C# crash dump than WinDbg, in which you can locate the crash in the layer of C# source code.

 

Below,I give steps to analyze C# crash dump in Visual Studio 2010.

  1. Open the crash dump by Visual Studio, then you can see the dump file summary tab after the loading is done.
  2. Setup symbols path: there are two ways to do this.
    1. Click "Set symbol paths" link in the dump file summary tab
    2. Select menu "Tools" -> "Options..." , then enter "Symbols" tab under "Debugging" branch
  3. Setup sources path:
    1. In "Solution Explorer", select "Property" in the context menu of the solution
    2. Add source paths in "Directory containning source code" list control in "Debugging Source Files" tab
  4. Start debugging by click "Debug with Mixed" or "Debug with Native Only" link in the dump file summary tab
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值