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
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 18.104.22.168 –httpPort 9090
where 22.214.171.124 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 http://126.96.36.199:9090 (where 188.8.131.52 is your local IP)
You can now surf to the same address from your local browser to start the debugging session.