Web developers can now quickly reproduce and troubleshoot issues that only show up in a specific mobile browsing environments using Perfecto DevTunnel and standard dev tools to isolate the problem and fix it.
- Register a user with the Perfecto CQ Lab (with the dev relevant permissions).
Debug on a Mobile Device
- Login to your Perfecto Lab account
- Click the ‘Launch Mobile’ icon in the Perfecto cloud toolbar
- Select an Android device and click “open”
- From the Widgets menu click the ‘DevTunnel’ widget
- If you have not done so already, download and install the DevTunnel installer. Wait for the installation to complete.
- Click the ‘Start Dev Tunnel Session’ step to establish a direct connection to the device
For additional information and guidance please refer to our documentation - http://developers.perfectomobile.com/display/PD/DevTunnel
- Interactively, start the Chrome browser on the Perfecto device.
Navigate to the site to debug (here we use the Perfecto sample app - http://www.nxc.co.il/web/1/index.html
- On your desktop Chrome browser, open the chrome://inspect/.
- Your connected Perfecto Lab device appears in the list of devices and the page that the device browser is opened on
- Click on “inspect” for the page, the Chrome inspection page opens.
Now you can easily use standard tools to debug your web application on real devices all over the globe. With Perfecto, you can easily setup the same environmental conditions under which the issue occurred – The same real devices with the same OS version, set the network, location, orientation, any additional apps installed on the device. Those capabilities help you to simply reproduce the issue, investigate it and reduce time to resolution.
- Select the script to work with, and display it in the right panel.
- Set a breakpoint in the script
- Step through the script and check the variable values during the execution, and perform other debugging actions.
- When finished, click the ‘Disconnect’ button from the Perfecto Widgets frame to close your DevTunnel session
- Click the ‘X’ on the device window to release the mobile device
Congratulations! You now know how to connect a real, cloud-based mobile device from the Perfecto Lab and use Chrome-inspect to check and debug the mobile web-app. Try it out with the next feature you’re building or run some of your own tests on different devices to see if your apps pass with flying colors on other platforms.