Intel® Inspector User Guide for Linux* OS

ID 767796
Date 3/22/2024
Public

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

Document Table of Contents

debug-this

Perform an analysis using the Intel(R) Debugger.

Syntax

-debug-this

Arguments

None

Default

Off

Actions Modified

collect

Description

Use the debug-this action-option to enable debugging during an analysis run.

NOTE:

The debugger is not supported for the mi1 analysis type.

Example

In this example, the mi3, Locate Memory Problems, analysis type is used when analyzing MyApp and for subsequent analysis runs that use this baseline result.

To create the result that you want to use as a baseline, perform a memory analysis on MyApp and save the result in the mi3_baseline result directory.

$ inspxe-cl -collect mi3 -result-dir ./mi3_baseline -- ./MyApp 

Create a breakpoint for problem P1 in the baseline result.

$ inspxe-cl -create-breakpoints P1 -result-dir ./mi3_baseline

Perform another analysis in debug mode by specifying the debug-this option so that the debugger breaks at the P1 breakpoint created in the previous step. The baseline-result option passes in the baseline result from the mi3_baseline result directory. Since the result directory for the new analysis result was not specified, it is written to a default-named result directory under the current working directory.

$ inspxe-cl -collect mi3 -debug-this -baseline-result ./mi3_baseline -- ./MyApp