# Debug/Run Saral App from Android Studio

### Source Code references

> > Open Terminal and clone source code `git clone https://github.com/Sunbird-Saral/Project-Saral.git`
> >
> > For latest repository details , refer: [Source Code Repository](/engage/source-code-repository.md)

> > Change Directory to `Project-Saral/` folder and switch to release tag as per release notes. `git checkout tags/<tag_name>`

> > `$FRONTEND_FOLDER = Project-Saral/v1.0/frontend`

> > `$BACKEND_FOLDER = Project-Saral/v1.0/backend`

Make sure [Workspace Setup - Playbook](/use/workspace-setup-playbook.md) is done. Follow below steps for debugging/running application from Android Studio

1. Open [**`$FRONTEND_FOLDER`**](#source-code-references)`/SaralApp/android folder` from Android Studio.
2. Run `npx react-native start` command from Terminal in [**`$FRONTEND_FOLDER`**](#source-code-references)`/SaralApp` the directory.
3. Run `adb reverse tcp:8081 tcp:8081` from another terminal
4. Now click on the `Run` or `Debug` button from Android studio.
5. When you are debugging, have debug breakpoints in android code as needed for troubleshooting.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://saral.sunbird.org/use/debug-run-saral-app-from-android-studio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
