debug_attach
Start a debug session for an iOS app by providing a bundle ID or process ID. Attach to the app and set optional breakpoints before resuming.
Instructions
Start a debug session for an iOS app. Provide either bundle_id (launches and attaches) or pid (attaches to a running process). Optional breakpoints[] are armed before the target resumes. Read mobai://reference/debugging first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Device ID | |
| bundle_id | No | App bundle ID to launch and attach. Either this or pid is required. | |
| pid | No | Attach to an already-running PID. Either this or bundle_id is required. | |
| breakpoints | No | Initial breakpoint specs. "File.swift:42" (preferred), "Module.Type.method" (no parameter signature), "-[Class method:]", or runtime symbol. | |
| stop_on_entry | No | Simulator only — pause at first instruction. |