mcpField
M
mobile-app-debugging

mobile-app-debugging

github.com/secondskyDevelopment240433 installsUpdated 5w ago
Repository

About mobile-app-debugging

mobile-app-debugging is a reference skill for diagnosing mobile applications across iOS, Android, and cross-platform frameworks. It outlines platform-specific debugging tools and checks for memory, network, performance, and common issues.

Key features

  1. 01iOS debugging with Xcode and LLDB
  2. 02Android log and layout diagnostics
  3. 03React Native debugging guidance
  4. 04Memory and network debugging techniques
  5. 05Device, performance, and offline checks

Use cases

  1. 01Investigating an iOS crash or memory issue
  2. 02Diagnosing Android ANRs and layout problems
  3. 03Debugging React Native behavior
  4. 04Checking app performance and offline operation

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/secondsky/claude-skills --skill mobile-app-debugging

After installing, type/mobile-app-debuggingin Claude Code to confirm it loaded.

Details

From the project README

Mobile App Debugging

Debug mobile applications across iOS, Android, and cross-platform frameworks.

iOS Debugging (Xcode)

// Breakpoint with condition
// Right-click breakpoint > Edit > Condition: userId == "123"

// LLDB commands
po variable          // Print object
p expression         // Evaluate expression
bt                   // Backtrace
Memory Debugging
  • Use Memory Graph Debugger to find retain cycles
  • Enable Zombie Objects for use-after-free bugs
  • Profile with Instruments > Leaks

Android Debugging (Android Studio)

// Logcat filtering
Log.d("TAG", "Debug message")
Log.e("TAG", "Error", exception)

// Filter: tag:MyApp level:error
Common Issues
  • ANR: Check main thread blocking
  • OOM: Profile with Memory Profiler
  • Layout issues: Use Layout Inspector

React Native

// Remote debugging
// Shake device > Debug JS Remotely

// Console logging
console.log('Debug:', variable);
console.warn('Warning');
console.error('Error');

// Performance Monitor
// Shake > Show Perf Monitor
// Target: 60 FPS, <16ms per frame

Network Debugging

// Intercept requests
XMLHttpRequest.prototype._send = XMLHttpRequest.prototype.send;
XMLHttpRequest.prototype.send = function() {
  console.log('Request:', this._url);
  this._send.apply(this, arguments);
};

Debug Checklist

  • Test on physical devices (not just simulators)
  • Test on older device models
  • Simulate slow 3G network
  • Test offline mode
  • Check memory under load
  • Test rotation and safe areas
  • Verify 60 FPS target

Performance Targets

MetricTarget
Frame rate60 FPS (16ms/frame)
Memory<100MB
App launch<2 seconds

Comments

Markdown supported