mcpField
M
mobile-app-debugging

mobile-app-debugging

github.com/aj-geddes开发373563 次安装34 周前更新
代码仓库

关于 mobile-app-debugging

用于排查移动应用问题的开发技能,涵盖平台差异、设备限制和网络状况。参考指南包括 iOS、Android、跨平台问题和调试清单。

主要功能

  1. 01iOS 调试指南
  2. 02Android 调试指南
  3. 03跨平台问题指南
  4. 04移动测试清单

适用场景

  1. 01排查移动应用崩溃
  2. 02诊断设备上的性能问题
  3. 03追踪平台特定缺陷
  4. 04检查移动网络问题

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill mobile-app-debugging

安装后在 Claude Code 中输入/mobile-app-debugging确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

references/
android-debugging.md
cross-platform-issues.md
ios-debugging.md
mobile-testing-debugging-checklist.md
scripts/
scaffold-tests.sh
templates/
test-template.js

详细介绍

移动应用调试

目录

概述

移动应用调试涉及平台特定问题、设备硬件限制以及移动网络特有的状况。

适用场景

  • 移动应用崩溃
  • 设备上的性能问题
  • 平台特定的错误
  • 网络连接问题
  • 特定设备的问题

快速入门

最小可用示例:

Xcode Debugging:

Attach Debugger:
  - Xcode → Run on device
  - Set breakpoints in code
  - Step through execution
  - View variables
  - Console logs

View Logs:
  - Xcode → Window → Devices & Simulators
  - Select device → View Device Logs
  - Filter by app name
  - Check system logs for crashes

Inspect Memory:
  - Xcode → Debug → View Memory Graph
  - Identify retain cycles
  - Check object count
  - Monitor allocation growth

---
Common iOS Issues:

App Crash (SIGABRT):
// ... (see reference guides for full implementation)

参考指南

references/ 目录中的详细实现:

指南内容
iOS 调试iOS 调试
Android 调试Android 调试
跨平台问题跨平台问题
移动测试与调试检查清单移动测试与调试检查清单

最佳实践

✅ 应该做
  • 遵循既定模式和惯例
  • 编写简洁、易于维护的代码
  • 添加适当的文档
  • 部署前进行全面测试
❌ 不要做
  • 跳过测试或验证
  • 忽略错误处理
  • 将配置值硬编码

评论

支持 Markdown