Intel® Inspector User Guide for Windows* OS

ID 767798
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Set Up 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 Intel Inspector analysis results:

Compiler/Linker Property

Correct C/C++ Setting

Impact If Not Set Correctly

Debug information

Enabled (/Zi or /ZI)

Missing file/line information

Optimization

Disabled (/Od)

Incorrect file/line information

Dynamic runtime library

Selected (/MD or /MDd)

False positives or missing code locations

Basic runtime error checks

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

False positives

Compiler/Linker Property

Correct Fortran Setting

Impact If Not Set Correctly

Debug information

Enabled (/debug:full)

Missing file/line information

Optimization

Disabled (/Od)

Incorrect file/line information

Dynamic runtime library

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

False positives or missing code locations

Basic runtime error checks

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.