Contents
Introduction
Titanium SDK enables Studio to initiate a debug session on an Android device. Debugging on an Android device involves the following steps:
- User selects Debug on Android Device.
- Studio builds the application.
- Application is installed on the device.
- Application launches on the device.
- Application initiates debug session with Studio.
This page will guide you through the setup, and the launch, of a debug session.
Starting a Debug Session
Before debugging, you must have created a Titanium project with an Android deploy target.
- Make sure your project is selected in the Project Explorer view.
- In the global tool bar, select Debug from the Launch Mode drop-down list.
- Select the Android device you want to launch your project on in the Target drop-down list.
- Click the Launch button.
- Studio builds the application and installs it on the device.
The application will launch on the device and you can use the Debug perspective to start debugging your application.
After you have launched one debug session for a given application, Studio creates a launch configuration for you, named Titanium Android Device - <AppName>. You can select this launch configuration, after launching the Debug Configuration wizard by select Debug Configurations from the Target drop-down list, to skip the wizard and start a new debug session using the same parameters.
To change the SDK version that the application is built against:
- In the global tool bar, select Debug from the Launch Mode drop-down list.
- Select the Debug Configuration from the Target drop-down list.
- Select the name of the launch configuration and click Apply to save changes or Debug to save changes and start a new debug session.