Поделиться через


DBG Files

This topic applies to:

Edition

Visual Basic

C#

F#

C++

Web Developer

Express

Topic does not apply Topic does not apply Topic does not apply Topic applies Topic does not apply

Pro, Premium, and Ultimate

Topic does not apply Topic does not apply Topic does not apply

Topic applies

Topic does not apply

DBG files are portable executable (PE) format files that contain debug information in Codeview format for the Visual Studio debugger (and possibly other formats, depending on how the DBG was created). When you do not have source for certain code, such as libraries or Windows APIs, DBG files permit debugging. DBG files also permit you to do OLE RPC debugging.

DBG files have been superseded by PDB files, which are now more commonly used for debugging.

You can use the REBASE.EXE utility to strip debug information from a PE-format executable and store it in a DBG file. The file characteristic field IMAGE_FILE_DEBUG_STRIPPED in the PE file header tells the debugger that Codeview information has been stripped to a separate DBG file.

You can download and install system DBG files that contain symbols for debugging calls to Windows APIs. For more information, see Installing System Debug Symbols.

When you debug using symbols from a DBG file, you must use the fully decorated names. For example, to set a breakpoint on a call to the Windows sndPlaySound function, you must specify _sndPlaySoundA@8.

The Visual Studio debugger is not designed for debugging protected mode kernel code, even with DBG symbols.

For user mode debugging, Visual Studio requires the following files:

  • On a Windows 2000 machine, DBG and PDB files in the \winNT\SYMBOLS\DLL directory.

  • On a Windows XP machine, PDB files in the \Windows\SYMBOLS\DLL directory.

For more information on DBG files, see the following Knowledge Basic article: Q121366, INFO: PDB and DBG Files - What They Are and How They Work

You can find Knowledge Base articles in the MSDN library.

See Also

Concepts

Installing Symbols for Debugging System Call Crashes

Other Resources

Debug Settings and Preparation