dpearson2699 avatar

Debugging Instruments

You'll reach for this when your iOS app is crashing, leaking memory, or freezing the UI and you need to figure out why. It covers the practical LLDB commands for debugging, walks through finding retain cycles with the Memory Graph Debugger, and shows how to use Instruments to profile CPU and memory. The retention cycle examples are particularly helpful, covering the classic mistakes like closures capturing self strongly and Timer targets. It also includes hang diagnostics with Time Profiler and covers build failure triage. Good for intermediate developers who know the tools exist but want efficient workflows and common patterns to look for.

skills.sh installs
4.3K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill debugging-instruments --agent claude-code

Installs into .claude/skills of the current project.

Files

Debugging and Instruments

Keep interactive graph and Instruments triage here. Route detailed .memgraph command-line ownership/growth analysis and ETTrace work to their focused skills.

Contents

LLDB Debugging

Start with a small, repeatable workflow:

  1. Reproduce in a Debug build and stop at the narrowest useful breakpoint.
  2. Inspect locals without executing code, then capture the current stack.
  3. Move to the relevant frame or thread and verify the failing state.
  4. Add a condition or watchpoint only when the bad transition is still unclear.

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
DevOps & CI/CD, Debugging, Rust, Mobile Development, CLI & Terminal
First seen
Apr 16, 2026

More from dpearson2699/swift-ios-skills

All 98
1getsentry avatarsentry-create-alertgetsentry/sentry-for-aiCreate Sentry alerts using the workflow engine API. Use when asked to create alerts, set up notifications, configure issue priority alerts, or build workflow au4.2Kskills.sh installs
2xixu-me avatarxgetxixu-me/xgetUse when tasks involve Xget URL rewriting, registry/package/container/API acceleration, integrating Xget into Git, download tools, package managers, container b4.2Kskills.sh installs
3dotnet avatarbinlog-generationdotnet/skillsGenerate MSBuild binary logs (binlogs) for build diagnostics and analysis. USE FOR: adding /bl:{} to any dotnet build, test, pack, publish, or restore command t4.2Kskills.sh installs
4sanyuan0704 avatarskill-forgesanyuan0704/sanyuan-skillsCreate high-quality, production-grade skills for Claude Code. Expert guidance on skill architecture, workflow design, prompt engineering, and packaging. Use whe4.2Kskills.sh installs
5hashicorp avatarprovider-resourceshashicorp/agent-skillsImplement Terraform Provider resources and data sources using the Plugin Framework. Use when developing CRUD operations, schema design, state management, and ac4.2Kskills.sh installs
6dpearson2699 avatarapple-on-device-aidpearson2699/swift-ios-skillsBuild private, on-device AI features on iPhone, iPad, and Mac with Foundation Models, Core ML, MLX Swift, or llama.cpp. Use when choosing an Apple-local model r4.2Kskills.sh installs