Article ID: 258205 - Last Review: August 27, 2007 - Revision: 2.3 How To Use Rebase to Extract Symbols for DrWtSn32.exeThis article was previously published under Q258205 SUMMARY
When an application stops responding ("crashes"), you can use Dr. Watson (DrWtSn32.exe) to generate a crash dump and a log file that describes the crash. On Windows NT and Windows 2000, when Dr. Watson can locate the symbols for the binaries that are involved, it can provide more detailed information about the crash. This article describes how to prepare and install the symbol (.dbg) files for an application. It does not describe how to install symbols for the operating system. For additional information on how to install Windows NT 4.0 symbols, click the article numbers below to view the articles in the Microsoft Knowledge Base: 148659
(http://support.microsoft.com/kb/148659/EN-US/
)
How to Set Up Windows NT Debug Symbols
141465
(http://support.microsoft.com/kb/141465/EN-US/
)
How to Install Symbols for Dr. Watson Error Debugging
MORE INFORMATION
To prepare and install symbol files, first you must correctly build your application so that it contains debug information. To do this for Microsoft Visual C++ applications, see the instructions in the following Knowledge Base article:
216356
(http://support.microsoft.com/kb/216356/EN-US/
)
INFO: Visual C++ Project Settings and .DBG File Creation
After you use the Rebase.exe file to strip the symbol (.dbg) file out of the binary, place the .dbg file in a location where Dr. Watson can find it. Do not place the .dbg file in the same folder as the binary. Dr. Watson looks for the symbol files in the <WINNT>\Symbols folder, where <WINNT> is the installation folder of Windows NT or Windows 2000. If this folder does not exist, you must manually create it. IMPORTANT: The Rebase utility extracts the .dbg file. Consider the following two examples:
The second example uses a period to indicate that you should create the .dbg file in the same folder as the binary. In this case, you should copy the .dbg file directly to the <WINNT>\Symbols folder. Internally, MyApp.exe does not reference the EXE subfolder as it does in the first example. NOTE: The same process applies for other file name extensions, but the subfolder changes accordingly. The final step is to make sure that you have Dr. Watson on the computer and that it is registered as the debugger. To verify this on a computer that is running Windows NT or Windows 2000, follow these steps:
REFERENCES
The Rebase utility is shipped with Visual C++ 6.0 and is located in the .\VC98\Bin folder. It is also available on the Platform SDK. To download the Platform SDK, see the following Web site on the Microsoft Developer Network (MSDN):
http://support.microsoft.com/default.aspx?pr=psdk
(http://support.microsoft.com/default.aspx?pr=psdk)
For additional information on Dr. Watson and symbol files, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
148659
(http://support.microsoft.com/kb/148659/EN-US/
)
How to Set Up Windows NT Debug Symbols
141465
(http://support.microsoft.com/kb/141465/EN-US/
)
How to Install Symbols for Dr. Watson Error Debugging
216356
(http://support.microsoft.com/kb/216356/EN-US/
)
INFO: Visual C++ Project Settings and .DBG File Creation
121366
(http://support.microsoft.com/kb/121366/EN-US/
)
INFO: PDB and DBG Files - What They Are and How They Work
| Article Translations
|
Back to the top
