RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

Publishing with Weinre

I need to debug my HTML5 app in iPhone Safari - so I turned it on, tried to publish, and a message popped up saying it had to be turned off. Is this a change - this is how I always used to do it?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Publishing with Weinre

Hello,

Please use weinre on apps which are exported from the appery.io. You don't have to publish them into app store with enabled weinre debugger.

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

Publishing with Weinre

Thank you. Is my understanding (based on the docs) of precise steps for debugging a pure html5 app on an iPhone's Safari correct?

  1. select Enable Weinre in app settings
  2. from the test menu, scan the qr into iPhone
  3. log into my account from the iPhone
  4. when the html5 app loads into Safari, click the debugging url in the platform's app settings on the computer
  5. both a target (in blue) and client (in black) are shown on the computer
  6. run the app on the iPhone and start debugging using the computer's menu on top (showing remote, elements, resources, network, timeline and console)
Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Publishing with Weinre

Hi Robert - Sergiy is saying that Weinre debugger is meant to be used with exported binary packages that are running on a device.

For the web app (HTML5 app) you can use browser developer tools, but if you needed to debug your app that's running on iOS device, you will need to do the following:

  1. Connect your iOS device to a Mac;

  2. Run your web app in the mobile Safari browser;

  3. Open Safari on your Mac and open Develop tools in the upper menu and select your iOS device on which your web app is running.

    You'll see developer tools window which will shows the runtime of your web app on a device.

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

Publishing with Weinre

Illya, thank you. Since I have always been able to debug essentially through the steps I outlined, I assume the method has been changed - correct? My problem is that I don't have a regular Mac - I have a mini mac and don't see how the phone can be "connected" to it other than Blue-tooth which I've never been able to get working.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Publishing with Weinre

Robert, Weinre is remote debugger and can work the way you've described too.
I'm just telling you the other option for debugging web apps on iOS and Mac.
In Mac mini you have USB ports in the back, so just connect your iOS device with USB cable and here you go!

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

Publishing with Weinre

You've been tremendously helpful Illya, thanks a million.

Return to “Issues”