Before debugging any RhoMobile app using RhoStudio, you must first make sure your app is setup to run in a debug session.
Ensure that your application is configured properly and successfully runs in RhoSimulator from the command line
To use RhoSimulator along with RhoStudio debugger to debug the Ruby code in your RhoMobile application:
RhoStudio will, by default, switch to the ‘Debug’ perspective, and it will establish a connection with RhoSimulator so that you can:
To use RhoStudio to debug a RhoMobile application running on your Android device you’ll want to make sure that your computer can “see” your android device using the adb command. So make sure your device’s USB debugging is on and run the adb command in your terminal or command prompt and confirm that your device shows up. Once you have ensured that your computer recognizes your device, follow these steps:
The device also needs to be on the same WiFi as the build machine. In the case where the build machine is connected to multiple networks, you may also need to put a parameter in your
rhoconfig.txt
: debughosturl='your build machine ip address'
RhoStudio will, by default, switch to the ‘Debug’ perspective, and it will establish a connection with RhoSimulator so that you can:
This is what you will see once you start to debug your app.
To use RhoStudio to debug a RhoMobile application running on your Android device:
RhoStudio will, by default, switch to the ‘Debug’ perspective, and it will establish a connection with RhoSimulator so that you can:
This is what you will see once you start to debug your app.