window上如何设置才能获取dump文件

■Windows2008下的设置方法:

  [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
   "DumpCount"=dword:0000000A
   "DumpType"=dword:00000002
   "DumpFolder"=Dumpファイルの出力ディレクトリ


■Windows2000和Windows xp的设置方法:

近来在工作中总是会有一些dump文件需要分析,但是自己对windug十分陌生。所以就想自己产生几个coredump文件,然后学习着用windug进行分析。虽然有了这个想法,但是不知道怎么才能在windows上产生coredump文件。于是抱着试试的想法,搜索了一下,结果还真让我给搜到了。

在以下的这个网址讲述了如何在xp和2000上如何设置?
http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was40.doc/html/Crash/swg21113013.html

现在我呢,就做了搬运工,搬到这里^_^。

Solution
  1. Open a command prompt window. 
  2. Enter the command drwtsn32.exe

    The following window will display:
    • For Windows 2000: 


    • For Windows XP: 


  3. In the Log File Path field, type the location to where you want the DrWatson log to be stored. 
  4. In the Crash Dump field, type the file name and location where you want the user.dmp file to be stored. 
  5. Make sure that the following options are selected:
    1. Dump Symbol Table
    2. Dump All Thread Contents
    3. Visual Notification
    4. Create Crash Dump File 
  6. If you are running Windows XP, set Crash Dump Type to NT4 Full Compatible
  7. From a command prompt, enter drwtsn32 -i to re-enable Dr. Watson as your default Windows debugger. This will make the necessary changes in the Windows registry.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值