IDA SDK

- Main Page
- Header Files
- Classes
- Modules

Macros | 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 monitor register values after the execution of the instruction.

## Macros
#define | IT_LOG_SAME_IP 0x01
| instruction tracing will log instructions whose IP doesn't change

## Functions
bool idaapi | is_insn_trace_enabled (void)
| Get current state of instructions 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

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

Get current state of instructions tracing.

Type | Synchronous function
Notification | none (synchronous function)

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)

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

Modify instruction tracing options.

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