Editing Source Code

You can access source code directly from Intel Inspector windows to resolve issues.

Caution

Editing the source file may desynchronize source file line numbers and result line number references. If your edits change line numbering, consider rebuilding the application and running another analysis. If you plan to examine a large number of issues before running another analysis, consider editing a copy of the source file.

To Do This

Do This

Edit the source code for the primary code location in a problem or problem set.

In the Problems pane on the Summary window, right-click the problem or problem set to display a context menu, then choose Edit Source.

Edit the source code for any code location in a problem.

Do one of the following:

  • In the Code Locations pane on the Summary window, right-click the code location to display a context menu, then choose Edit Source.

  • Double-click anywhere in the Source tab on the Sources window.

Edit call stack source code (dynamic analyses only).

Double-click the call stack frame in the Call Stack tab on the Sources window.

Note

This action also displays associated code in the Source tab on the Sources window.

Edit traceback source code (static analyses only).

Double-click the traceback frame in the Traceback tab on the Sources window.

Note

This action also displays associated code in the Source tab on the Sources window.

Outcome: The source file opens in your default editor.

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