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.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章