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:
- Right-click the project in theSolution Explorerto display a context menu, then choosePropertiesto display theProperty Pagesdialog box.
- Click theConfiguration Managerbutton.
- In theActive solution configurationdrop-down list, chooseDebug.
- Click theClosebutton to close theActive solution configurationdialog box.
- Click theOKbutton to close theProperty Pagesdialog box.
Outcome: Whenever you build this application, it builds
in debug mode.