/DEBUG (Windows CE 5.0)

Send Feedback

Creates debugging information for the .exe file or DLL.

/DEBUG

Remarks

The linker puts the debugging information into a program database (PDB). It updates the PDB during subsequent builds of the program.

An .exe file or DLL created for debugging contains the name and path of the corresponding PDB. The debugger reads the embedded name and uses the PDB when you debug the program. The linker uses the base name of the program and the extension .pdb to name the program database, and embeds the path where it was created.

To override this default, set the /PDB:filename - Use Program Database linker option on the command line, and specify a different file name in the Program database name text box.

The compiler /Zd Line Numbers Only option causes the compiler to leave the debugging information in the .obj files. You can also use the /Zi Program Database compiler option to store the debugging information in a PDB for the .obj file. The linker looks for the objects PDB first in the absolute path written in the .obj file, and then in the directory that contains the .obj file.

You cannot specify an object's PDB file name or location to the linker.

If the Use Program Database option is not selected, the linker does not create a PDB, but instead puts the debugging information into the .exe file or DLL.

The /DEBUG Generate Debug Info option changes the defaults for the /OPT option from REF to NOREF and from ICF to NOICF.

See Also

Linker Options

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.