Remote debugging from Android Studio

General information

Android Studio is the official IDE for Android OS, and it has the Device Manager, where you can select a Device to build and install your Application or run Espresso tests. Mobitru Connect tool allows starting a connection to a real Device, accessible in the Device Manager and available for performing any allowed operation.

How to start

To use the real Device in the Android Studio, follow the steps:

  1. Install the Android Studio and all related tools.
    More details can be found here.
  2. Start a remote debug Session using the following instruction.
  3. You can find an example of a Project with an Android Demo app and Espresso tests here.

Build and install an Application

To build and install your Application in the Android Studio, follow the steps:

  1. Select the app Run Configuration:
  2. Select the connected device in the List of available devices:
  3. Start running of the Configuration:
  4. Wait for the Application will be assembled and installed on the Device:
  5. The Log capturing will be also available:

Run Tests

To run Espresso tests for your Application in the Android Studio, follow the steps:

  1. Add the Android Instrumented Tests Run Configuration:
  2. Select the connected device in the List of available devices:
  3. Start running of the Configuration:
  4. Wait for the Application will be assembled and installed on the Device:
  5. Then the Test Execution will be started:
  6. The Log capturing will be started automatically:

Debug

To debug your Application in the Android Studio, follow the steps:

  1. Make a break point in the Code:
  2. Select the app Run Configuration:
  3. Select the connected device in the List of available devices:
  4. Start debugging of the Configuration:
  5. Wait for the Application will be assembled and installed on the Device:
  6. Then the App execution will be stopped on added point after performing appropriate action:
  7. The Log capturing will be started automatically:
Scroll to Top