Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Remote Opera Debugging on Android

DZone's Guide to

Remote Opera Debugging on Android

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

The final article on remote debugging web applications on mobile devices shows how you can do this using Opera Mobile. With Opera Mobile you can easily debug web applications running on Android, without needing an USB connection (b.t.w you can also debug web application on firefox without USB). In this article I'll quickly walk you through the steps required to setup the debug connection.

If you want to use a different mobile browser see these two articles:

  1. Remote debugging using firefox
  2. Remote debugging using chrome.

Using Opera for this, is just as simple as using firefox or chrome. All you need to do is the following:

  1. Setup Opera on the desktop to listen for debug connections
  2. Start a debug connection from Opera Mobile
  3. Start debugging

Since we won't be working with an USB cable, you'll need to know the ip address of your Desktop. You can use the ipconfig/ifconfig command in a terminal to get this address.

platform-tools — bash — 80×24.png

Setup Opera on the desktop to listen for debug connections

Open Opera and start "Opera Dragonfly" from the menu (Tools->Advanced->Opera DragonFly). This will show the debugging console at the bottom of the current page. Click on the "Remote Debug Configuration" button and you'll be shown the following screen:

News Portal - Home.png

Just click on "Apply" here, and Opera will wait for a connection request from a remote device.

Start a debug connection from Opera Mobile

Now open Opera Mobile on your phone or tablet and point your browser to "opera:debug".

2012-08-10_12-22-51.jpg

Enter the ip-address you looked up earlier and click on 'connect'. This will setup a connection between opera on your mobile device and on your desktop. Now you can open the website you want to debug in a new tab on your device and use Opera on your desktop to debug the specific tab.

News Portal - Home-1.png

And that's all you have to do.

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:

Published at DZone with permission of Jos Dirksen, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}