Debug a Hybrid Mobile Application

Last update: Download PDF Edit

This how-to explains the steps involved in debugging a Mendix application that is running in the Mendix Developer App on your mobile phone.

After completing this how-to you will know:

  • How to debug a mobile application

1. Preparation

Before you can start with this how-to, make sure you have completed the following prerequisites.

  • Install weinre
  • Mendix Developer App (v1.1 or later) installed on your mobile device. You can find it in your platform’s appstore. 

2. Start weinre

From your console, start weinre with the following parameters:

weinre –boundHost –httpPort 9090

where is your local IP. This will most probably match the address that you see in the History of your Mendix Developer App. You can change 9090 to a different port, as long as it doesn’t clash with your application’s port, which is usually 8080. 

3. Connect your Mendix Developer App

Click the settings icon (top right, see screenshot) to configure your debugger. On the configure screen, fill in the same settings that you used to start weinre. This should be (where is your local IP)

You can now surf to the same address from your local browser to start the debugging session.