| IDA SDK

Functions
Instruction tracing
Debugger functions » Tracing

## Detailed Description

When instruction tracing is active, each executed instruction is stored in the tracing buffer.

Internally, IDA uses step tracing to record register values after the execution of the instruction.

## Functions
bool idaapi | is_insn_trace_enabled (void)
| Get current state of instruction tracing. More...
int idaapi | get_insn_trace_options (void)
| Get current instruction tracing options. More...
void idaapi | set_insn_trace_options (int options)
| Modify instruction tracing options. More...
void idaapi | request_set_insn_trace_options (int options)
| Post a set_insn_trace_options() request.

## Enable/Disable instruction tracing
Type | Synchronous function - available as request
Notification | none (synchronous function)
bool idaapi | enable_insn_trace (bool enable=true)
bool | disable_insn_trace (void)
bool idaapi | request_enable_insn_trace (bool enable=true)
bool | request_disable_insn_trace (void)

## Function Documentation

## ◆ is_insn_trace_enabled()

bool idaapi is_insn_trace_enabled | ( | void |  | ) |
| inline

Get current state of instruction tracing.

Type | Synchronous function
Notification | none (synchronous function)

## ◆ get_insn_trace_options()

int idaapi get_insn_trace_options | ( | void |  | ) |
| inline

Get current instruction tracing options.

Also see IT_LOG_SAME_IP

Type | Synchronous function
Notification | none (synchronous function)

## ◆ set_insn_trace_options()

void idaapi set_insn_trace_options | ( | int | options | ) |
| inline

Modify instruction tracing options.

Type | Synchronous function - available as request
Notification | none (synchronous function)