Re: How to debug my App? (366 Views)
Honored Contributor
Posts: 209
Registered: ‎04-04-2013
Message 1 of 3 (418 Views)
Accepted Solution

How to debug my App?

What are the debugging approaches and tools I can use when developing my HP Anywhere App?

If some answer solves your problem, please mark it as a solution.
Posts: 11
Registered: ‎04-09-2013
Message 2 of 3 (366 Views)

Re: How to debug my App?

[ Edited ]

A couple of options exist for debugging your application: 1. using the IDE plugin HP Anywhere provide, you can use Chrome dev tools to debug your application like all other web app. you can even use a special appdev=true query parameter and get the non-minified version of your app. 2. for debugging on a real device, I strongly recommend getting acquainted with WeInRe: using it you get all most full dev-tools debugger on your real device (except Javascript code inspection) to use it, add to your descriptor's javascript files list the weinre script, with your computer's IP and port on which weinre is running (remember that the default 8080 port is already taken by HP Anywhere) Hope it helps Nadav

Posts: 24
Registered: ‎06-18-2013
Message 3 of 3 (346 Views)

Re: How to debug my App?

You can use Fiddler as HTTP proxy to examine the resources requested by device; Setting fiddler on PC: 1. Download Fiddler ( 2. Open Fiddler and goto Tools->Fiddler Options-> Connections-> "Allow Remote computers to connect" 3. Restart Fiddler In your device, configure your PC as proxy 1. iPhone device->Settings-> Wifi-> Select the network and click on the arrow icon to configure the Wifi Network settings 2. In screen bottom you will see "HTTP Proxy" section 3. Click on "Manual" 4. Set the "Server" to your PC IP address (where Fiddler was installed) 5. Set port to 8888 (or any other port as defined in Fiddler options) Open HPA App in device and watch Fiddler for the requests being made, watch our for any failures. Thanks, Sami.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.