ppsspp_breakpoint_list
List all CPU execution breakpoints to inventory or verify current breakpoints before modifying them.
Instructions
PURPOSE: List all currently-set CPU execution breakpoints. USAGE: Inventory before bulk-removing, or sanity-check what's set. BEHAVIOR: No side effects — pure read. RETURNS: Multi-line text, one line per breakpoint with its address and any conditions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:601-607 (handler)Handler for ppsspp_breakpoint_list tool: calls PPSSPP's cpu.breakpoint.list via WebSocket, formats the response as multi-line text listing each breakpoint's address, enabled status, and condition.
case "ppsspp_breakpoint_list": { const r = await pp.call<{ breakpoints?: Array<{ address: number; enabled?: boolean; condition?: string }> }>("cpu.breakpoint.list"); const bps = r.breakpoints ?? []; if (bps.length === 0) return ok("No breakpoints set."); const lines = bps.map((b) => ` ${addrHex(b.address)} ${b.enabled === false ? "(disabled)" : ""}${b.condition ? ` if ${b.condition}` : ""}`); return ok(`${bps.length} breakpoint${bps.length === 1 ? "" : "s"}:\n${lines.join("\n")}`); } - src/tools.ts:383-391 (schema)Schema/type definition for ppsspp_breakpoint_list tool: no input parameters required, returns multi-line text.
{ name: "ppsspp_breakpoint_list", description: "PURPOSE: List all currently-set CPU execution breakpoints. " + "USAGE: Inventory before bulk-removing, or sanity-check what's set. " + "BEHAVIOR: No side effects — pure read. " + "RETURNS: Multi-line text, one line per breakpoint with its address and any conditions.", inputSchema: { type: "object", properties: {} }, }, - src/tools.ts:383-391 (registration)Registration entry in the TOOLS array: defines the tool name, description, and input schema for the MCP ListTools handler.
{ name: "ppsspp_breakpoint_list", description: "PURPOSE: List all currently-set CPU execution breakpoints. " + "USAGE: Inventory before bulk-removing, or sanity-check what's set. " + "BEHAVIOR: No side effects — pure read. " + "RETURNS: Multi-line text, one line per breakpoint with its address and any conditions.", inputSchema: { type: "object", properties: {} }, }, - src/tools.ts:401-402 (helper)Helper function addrHex used in breakpoint_list handler to format addresses as 8-digit zero-padded hex strings.
function addrHex(n: number): string { return `0x${n.toString(16).toUpperCase().padStart(8, "0")}`;