When you create a Visual C++ project, a Win32 Release and a Win32 Debug version of the project files are automatically made. You can change the project settings in the C/C++ tab of the Project Settings dialog (from the Settings command on the Project menu).
Option | Result |
Program Database (default) | Produces a program database (.pdb) containing type information and symbolic debugging information. |
Line Numbers Only | Produces an .OBJ file or executable (.exe) file containing only global and external symbol and line-number information (no symbolic debugging information). |
C7 Compatible | Produces an .obj file and an .exe file containing line numbers and full symbolic debugging information for use with the debugger. |
None | Produces no debugging information. |
For more information, see What Are .pdb and .dbg Files?.
To change the debug information generated during a build
The Project Settings dialog box appears.
To change the format of the debug information generated during a build
The Project Settings dialog box appears.
To generate a mapfile during a build
The Project Settings dialog box appears.
To redirect debug input/output
The Project Settings dialog box appears.
Command | Action |
<file | Reads stdin from file (see Note below) |
>file | Sends stdout to file (see Note below) |
>>file | Appends stdout to file (see Note below) |
2>file | Sends stderr to file (see Note below) |
2>>file | Appends stderr to file |
2>&1 | Sends stderr (2) output to same location as stdout (1) |
1>&2 | Sends stdout (1) output to same location as stderr (2) |
Note You can use the >, <, >>, and 2> commands for applications that read or write to stderr and stdout. In most (if not all) cases, this is specific to console applications.