Skip to content

Getting Log from logcat

Jonathan Pobst edited this page Nov 30, 2021 · 1 revision

Android writes logging messages while it is running to "logcat". These can be useful when debugging issues.

To copy the current Android logcat output to your clipboard:

Windows

  • In Visual Studio, click Tools > Android > Android Adb Command Prompt.
  • In the launched cmd.exe window, run: adb logcat -d | clip.

MacOS

  • In Visual Studio for Mac, click Tools > SDK Command Prompt.
  • In the launched Terminal.app window, run: adb logcat -d | pbcopy
Clone this wiki locally