
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-codeInstalls 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
- Memory Debugging
- Hang Diagnostics
- Build Failure Triage
- Instruments Overview
- Common Mistakes
- Review Checklist
- References
LLDB Debugging
Start with a small, repeatable workflow:
- Reproduce in a Debug build and stop at the narrowest useful breakpoint.
- Inspect locals without executing code, then capture the current stack.
- Move to the relevant frame or thread and verify the failing state.
- 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- Swiftui Uikit Interop4.2K
- Storekit4.2K
- Widgetkit4.2K
- Swiftui Gestures4.2K
- Apple On Device Ai4.2K
- Swift Charts4.2K
- Swift Language4.1K
- App Intents4.1K
- Authentication4.1K
- Background Processing4.1K
- Healthkit4K
- Vision Framework4K
- Coreml3.9K
- Core Bluetooth3.9K
- Core Motion3.8K
- Natural Language3.8K
- Speech Recognition3.8K
- Device Integrity3.8K
- Contacts Framework3.8K
- Alarmkit3.8K
- Core Nfc3.8K
- Swift Codable3.8K
- Tipkit3.8K
- App Clips3.8K