Setting Applications to Build in Debug Mode in the Visual Studio* IDE

Prerequisite: Configure debug mode with the optimal compiler and linker settings to produce the most accurate and complete results:

Compiler/Linker Property

Correct C/C++ Setting

Correct Fortran Setting

Impact If Not Set Correctly

Debug information

Enabled (/Zi or /ZI)

Enabled (/debug:full)

Missing file/line information


Disabled (/Od)

Disabled (/Od)

Incorrect file/line information

Dynamic runtime library

Selected (/MD or /MDd)

Selected (/libs:dll/threads or libs:dll/threads/dbglibs )

False positives or missing code locations

Basic runtime error checks

Disabled (do not use /RTC; Default option in Visual Studio* IDE)

None (/check:none)

False positives

To set application to build in debug mode:

  1. Right-click the project in the Solution Explorer to display a context menu, then choose Properties to display the Property Pages dialog box.
  2. Click the Configuration Manager button.
  3. In the Active solution configuration drop-down list, choose Debug.
  4. Click the Close button to close the Active solution configuration dialog box.
  5. Click the OK button to close the Property Pages dialog box.

Outcome: Whenever you build this application, it builds in debug mode.

See Also

Supplemental documentation specific to a particular Intel Studio may be available at <install-dir>\<studio>\documentation\ .

For more complete information about compiler optimizations, see our Optimization Notice.