For the complete documentation index, see llms.txt. This page is also available as Markdown.

Traces and Device Monitor

traces-and-device-monitor.gpc
int raw_x;
int output_x;

main {
    raw_x = get_ival(PS5_RX);
    output_x = get_val(PS5_RX);

    set_val(TRACE_1, raw_x);
    set_val(TRACE_2, output_x);
    set_val(TRACE_3, output_x - raw_x);
}
Trace channel
Width
Signed range

TRACE_1

32-bit

-2,147,483,648..2,147,483,647

TRACE_2

32-bit

-2,147,483,648..2,147,483,647

TRACE_3

32-bit

-2,147,483,648..2,147,483,647

TRACE_4

16-bit

-32,768..32,767

TRACE_5

16-bit

-32,768..32,767

TRACE_6

16-bit

-32,768..32,767

Values written to TRACE_4..TRACE_6 cannot preserve a full 32-bit integer. Use TRACE_1..TRACE_3 for large counters, masks, timestamps, or persistent values. Trace the state boundary relevant to the bug: physical input, transformed value, final output, mode, index, timer, or dirty flag.

Last updated