Crashes · Crash
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
The crashes the device recorded — Java exceptions, native signals and apps that stopped responding — newest first, with the line worth reading first. These call app_crashes.
Crashes
func (d *Device) Crashes(ctx context.Context, app string, limit int) ([]CrashReport, error)
Crashes lists the crashes the device recorded, newest first. An empty app lists every process's; limit of zero takes the tool's default.
Crash
func (d *Device) Crash(ctx context.Context, id string) (CrashReport, error)
Crash reads one crash report in full, by an id from Crashes.
Examples
List one app's crashes
// A limit of 0 takes the tool's default.
crashes, err := dev.Crashes(ctx, "com.example.shop", 0)
if err != nil {
return err
}
for _, c := range crashes {
fmt.Println(c.Time, c.Kind, c.Summary)
}