近來在工作中總是會(huì)有一些dump文件需要分析,但是自己對(duì)windug十分陌生。所以就想自己產(chǎn)生幾個(gè)coredump文件,然后學(xué)習(xí)著用windug進(jìn)行分析。雖然有了這個(gè)想法,但是不知道怎么才能在windows上產(chǎn)生coredump文件。于是抱著試試的想法,搜索了一下,結(jié)果還真讓我給搜到了。
在以下的這個(gè)網(wǎng)址講述了如何在xp和2000上如何設(shè)置?
http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was40.doc/html/Crash/swg21113013.html
現(xiàn)在我呢,就做了搬運(yùn)工,搬到這里^_^。
Solution | - Open a command prompt window.
- Enter the command drwtsn32.exe.
The following window will display:
- For Windows 2000:

- For Windows XP:

- In the Log File Path field, type the location to where you want
the DrWatson log to be stored.
- In the Crash Dump field, type the file name and location where
you want the user.dmp file to be stored.
- Make sure that the following options are selected:
- Dump Symbol Table
- Dump All Thread Contents
- Visual Notification
- Create Crash Dump File
- If you are running Windows XP, set Crash Dump Type to NT4
Full Compatible.
- 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.
| ? |
|
|
|
| ? |