Visible to Intel only — GUID: GUID-199DE970-6DA4-4AAF-9002-C232721B84E6
Visible to Intel only — GUID: GUID-199DE970-6DA4-4AAF-9002-C232721B84E6
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 the Solution Explorer to display a context menu, then choose Properties to display the Property Pages dialog box.
- Click the Configuration Manager button.
- In the Active solution configuration drop-down list, choose Debug.
- Click the Close button to close the Active solution configuration dialog box.
- Click the OK button to close the Property Pages dialog box.
Outcome: Whenever you build this application, it builds in debug mode.