Screenshots and screen recording

A short video is often the fastest way to explain a bug. How to capture the screen on every platform, and how to mirror a phone live on your computer.

Quick reference

Platform Screenshot Screen recording
iPhone / iPad Side button + Volume up Control Center → Screen Recording
iOS Simulator Cmd+S Cmd+R
Android Power + Volume down Quick Settings → Screen record
macOS Cmd+Shift+3 / 4 Cmd+Shift+5
Windows Win+Shift+S Snipping Tool → Record
Linux (GNOME) Print Screen Print Screen → video toggle
ChromeOS Ctrl + Show windows Quick Settings → Screen capture

iOS

On the device

Mirror live with QuickTime

QuickTime Player on a Mac can show an iPhone or iPad screen live over a cable. Use it to demo a bug in a call, or to record in better quality without filling the phone.

  1. Connect the device to the Mac with a cable, unlock it and tap Trust if asked.
  2. Open QuickTime Player and choose File → New Movie Recording.
  3. Click the arrow next to the record button and choose the device under Camera. Choose it under Microphone too, to get the app's sound.
  4. The device screen appears live. Click record to save it as a video.
Clean status barWhile recording, iOS usually shows a tidy status bar with full battery and signal, which is nice for screenshots and demos.

From Xcode and the Simulator

# Screenshot of the booted simulator
xcrun simctl io booted screenshot screen.png

# Record video, press Ctrl+C to stop
xcrun simctl io booted recordVideo bug.mov

More in Simulators.

Android

On the device

With ADB

# Screenshot straight to your computer
adb exec-out screencap -p > screen.png

# Record video (stops after 3 minutes, or press Ctrl+C)
adb shell screenrecord /sdcard/bug.mp4
adb pull /sdcard/bug.mp4

Setting up ADB is covered in Platform tools & ADB. In the emulator, use the camera button in the side toolbar, or Extended controls → Record and Playback. See Emulators.

Mirror live with scrcpy

scrcpy is a free, open source tool that shows and controls an Android device from your computer, on macOS, Windows and Linux. You can type with your keyboard, click with the mouse and record at the same time.

  1. Turn on USB debugging on the device and connect it with a cable.
  2. Install scrcpy. On a Mac with Homebrew:
brew install scrcpy
brew install --cask android-platform-tools
  1. Run it. The device screen opens in a window.
# Mirror the screen
scrcpy

# Mirror and record to a file
scrcpy --record=bug.mp4

# Show taps, keep the device awake, smaller window
scrcpy --show-touches --stay-awake --max-size=1024
Audioscrcpy also forwards the device sound on Android 11 and later, so recordings include it.

macOS

Windows

Linux

ChromeOS

Browser

Tips for bug videos

ffmpeg -i bug.mov -vcodec libx264 -crf 28 bug.mp4

Attach the video to the last section of your bug report.