> For the complete documentation index, see [llms.txt](https://bamtech.gitbook.io/dev-standards/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bamtech.gitbook.io/dev-standards/react-native/debugging/debug-native-android.mo.md). Agents can also search and read this documentation through its [MCP server](https://bamtech.gitbook.io/dev-standards/~gitbook/mcp).

# debug-native-android.mo

## Owner: [Yann Leflour](https://github.com/yleflour)

## Debug Android code

### Prerequisites

* [ ] Have [Android Studio](https://developer.android.com/studio/index.html) installed

  **Steps**
* [ ] Open **Android Studio**
* [ ] Click on *File > Open*
* [ ] Navigate to and open */android*
* [ ] Run in debug mode from **Android Studio**

## Log Android Errors

### Prerequisites

* [ ] Have [Pidcat](https://github.com/JakeWharton/pidcat) installed

## Steps

* Connect the Android phone to your computer
* Make sure that the phone is available from your computer: `adb devices`
* Run: `pidcat <GRADLE_APP_IDENTIFIER>`
* See all the logs related to your app, requests, native and javascript logs and errors, etc.
