ppsspp_breakpoint
Manage CPU execution and memory watchpoints for active PPSSPP sessions. Set, remove, update, or list breakpoints to pause on specific code or memory access, enabling targeted debugging of PSP games.
Instructions
PURPOSE: Set, remove, update, and list CPU execution breakpoints and memory watchpoints.
USAGE: action + session_id; set/remove/update manage CPU exec breakpoints (address required); mem_set/mem_remove/mem_update manage memory watchpoints (size 1/2/4+, read/write flags); list/mem_list take no address.
BEHAVIOR: MUTATING. Reliable hits need CPUCore=2 (IR Interpreter). mem_remove resolves the watchpoint's real size via mem_list first (address+size matching); mem_update merges existing read/write/change unconditionally (PPSSPP zero-omits omitted bools). CPU set/remove return no data — the tool follows with a list for verification.
RETURNS: {action, address, enabled, breakpoints[]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | Log flag (update / mem_set / mem_update only; None = don't change). For mem_set, defaults to False when None. | |
| read | No | Trigger on read access (mem_set only; None defaults to True). For mem_update, passing read triggers a merge query — omit to leave read unchanged. | |
| size | No | Memory breakpoint watch size in bytes (mem_set / mem_remove / mem_update; default 4). Fixed-width watches use 1/2/4; larger sizes are passed through to PPSSPP as a range watch. PPSSPP matches memory breakpoints by address+size pair, so remove/update must pass the exact size recorded at set time. | |
| write | No | Trigger on write access (mem_set only; None defaults to True). For mem_update, passing write triggers a merge query — omit to leave write unchanged. | |
| action | Yes | Breakpoint operation. Valid values: CPU breakpoint actions: - 'set': add a CPU execution breakpoint (requires address; enabled? defaults to True; condition? optional). - 'remove': delete a CPU breakpoint by address. - 'list': list all current CPU breakpoints. - 'update': update a CPU breakpoint's enabled/log/condition/log_format (requires address; all other params optional). Memory breakpoint actions: - 'mem_set': add a memory access breakpoint (requires address; size?/read?/write?/enabled?/log?/condition?/log_format?). - 'mem_remove': delete a memory breakpoint by address. Delete semantics are STRICT: removing a non-existent memcheck is an ERROR (unlike ppsspp_state_observer action=clear, which is idempotent-ok — F-5 contract, 2026-09-08). - 'mem_list': list all current memory breakpoints. - 'mem_update': update a memory breakpoint's enabled/log/condition/log_format (requires address). | |
| address | No | Breakpoint address, as a hex string (e.g. '0x08804000'). Required for set / remove / update / mem_set / mem_remove / mem_update; ignored for list / mem_list. | 0x0 |
| enabled | No | Breakpoint enable flag. For action='set' / 'mem_set', defaults to True when None. For action='update' / 'mem_update', None means 'don't change'. Ignored for remove / list actions. | |
| condition | No | Break condition expression (set / update / mem_set / mem_update; None = don't send). | |
| log_format | No | Log format string (update / mem_set / mem_update only; None = don't change). | |
| session_id | Yes | Active session ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'set' / 'remove' / 'list' / 'update' / 'mem_set' / 'mem_remove' / 'mem_list' / 'mem_update'. | |
| address | Yes | Breakpoint address, hex string (e.g. '0x08804000'); '0x00000000' for list / mem_list. | |
| enabled | Yes | Enabled flag (set / mem_set / update / mem_update only). | |
| breakpoints | Yes | Breakpoint list (list / mem_list only). |