debugging-instruments

Debug iOS applications with LLDB and Instruments for crashes and memory leaks.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/shopmikey-solutions/Shopmikeyapp --skill debugging-instruments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debugging-instruments
Source: https://github.com/shopmikey-solutions/Shopmikeyapp/tree/main/.codex/skills/skills/debugging-instruments
Command: npx skills add https://github.com/shopmikey-solutions/Shopmikeyapp --skill debugging-instruments

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers diagnose and fix issues in iOS applications, including crashes, memory leaks, performance bottlenecks, and build failures.

Core Features & Use Cases

  • LLDB Debugging: Utilize powerful command-line debugging for breakpoints, variable inspection, and expression evaluation.
  • Memory Debugging: Employ the Memory Graph Debugger and Instruments to find and fix memory leaks and retain cycles.
  • Performance Profiling: Use Instruments (Time Profiler, Allocations, etc.) to identify and resolve performance issues like hangs and slow rendering.
  • Build Failure Triage: Understand and resolve compiler errors and dependency issues.
  • Use Case: When an app crashes unexpectedly on launch, use LLDB to set a symbolic breakpoint on -[UIApplication main] and inspect the call stack to understand the cause.

Quick Start

Use LLDB to set a breakpoint at line 42 in ViewModel.swift and print the value of the 'count' variable.

Frequently Asked Questions about debugging-instruments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find memory leaks and retain cycles in an iOS app?

To find memory leaks and retain cycles in an iOS app, use the Xcode Memory Graph Debugger alongside Instruments templates. These tools inspect object reference graphs to pinpoint exactly where memory is incorrectly retained.

What's the best way to profile iOS app performance and resolve hangs?

The best way to profile iOS app performance and resolve hangs is using Instruments templates like Time Profiler and Allocations. They trace CPU usage and memory allocations to identify slow rendering and bottlenecks.

How do I debug an unexpected iOS app crash on launch using LLDB?

Debug an unexpected iOS app crash on launch using LLDB by setting a symbolic breakpoint on `-[UIApplication main]`. Inspect the call stack and evaluate expressions in the command-line interface to understand the exact failure point.

Can I inspect variables and set breakpoints in Xcode with LLDB command-line interface?

Yes, you can inspect variables and set breakpoints in Xcode using the LLDB command-line interface. It supports setting line-specific breakpoints, such as line 42 in a Swift file, and printing variable values during execution.

How do I triage iOS build failures and compiler errors?

Triage iOS build failures and compiler errors by analyzing Xcode build logs to understand dependency issues and compiler outputs. This diagnostic process isolates the root cause of the build system failure.