How do you capture logs and crash evidence on Android and iOS?
MobileMid-level
In shortOn Android, use adb logcat and the crash stack trace; on iOS, use the Console app or Xcode device logs and the crash reports in Settings. Always add a screen recording and the build number.
Model answer
Good evidence turns “it crashed” into a bug a developer can fix in minutes.
Android
- Connect the device and run
adb logcat. Clear it first (adb logcat -c), reproduce, then save the output. - Look for
FATAL EXCEPTIONand the stack trace below it; that is what the developer needs. adb shell screenrecordor the built-in screen recorder for video;adb bugreportfor a full report.- Android Studio’s Logcat window lets you filter by app.
iOS
- Connect the iPhone to a Mac and open the Console app (or Xcode > Devices and Simulators) to stream logs and view crash logs.
- On the device: Settings > Privacy & Security > Analytics & Improvements > Analytics Data holds crash files you can share.
- TestFlight crash feedback is also sent to the team.
- Screen recording from Control Center.
Both
- Crash reporting tools like Firebase Crashlytics or Sentry: I find the crash there and link it in the ticket.
- Always include the build number, device, OS version, exact time of the crash and steps.
- Paste only the relevant part of the log, and attach the full file.
Learn more: adb Basics
What they're looking for
Practical, tool-specific knowledge for both platforms, and an understanding of which evidence helps developers fix a crash fast.
Common mistakes
- Reporting "the app crashed" with no steps, build number or logs.
- Not knowing any way to get logs from a device.
- Attaching a huge unfiltered log without pointing to the relevant part.
More mobile questions
- How is testing a mobile app different from testing a website?Mid-level
- How do you decide which devices to test on, and when do you use emulators, simulators or real devices?Mid-level
- What are the main differences between testing on iOS and Android?Junior
- How do you test interruptions in a mobile app?Junior