NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Changing Project Settings for a Debug Build

When you create a Visual C++ project, a Release and a 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

  1. In the Solution Explorer, select the project.
  2. From the View menu, click Property Pages.

    The Project Property Pages dialog box appears.

  3. Choose the Configuation Settings folder.
  4. Choose the Build or Debug folder.
  5. Edit the properties in the properties grid.
  6. Click OK.

To change the format of the debug information generated during a build

  1. From the Project menu, click Settings.

    The Project Settings dialog box appears.

  2. Choose the Link tab.
  3. Choose General from the Category dropdown list.
  4. Choose Generate debug info.
  5. The default format is Microsoft Format (/DEBUGTYPE:CV). To change the format to COFF, type /DEBUGTYPE:COFF in the Project Options text box.
  6. Click OK to set the option and close the Project Settings dialog box.

To generate a mapfile during a build

  1. From the Project menu, click Settings.

    The Project Settings dialog box appears.

  2. Choose the Link tab.
  3. Choose Debug from the Category dropdown list.
  4. Select the Generate mapfile check box.
  5. Enter a name in the Mapfile name text box or accept the default.
  6. Click OK to accept the settings option and close the Project Settings dialog box.

To redirect input/output in a Win32 Debug build

  1. From the Project menu, click Settings.

    The Project Settings dialog box appears.

  2. Select the Debug tab.
  3. In the Program Arguments text box, specify one or more I/O redirection commands from the following table. You can combine I/O redirection commands in any order.
  4. Click OK to accept the redirection and close the Project Settings dialog box.
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.

See Also

Debugging Preparation