Page 1 of 1

Publishing with Weinre

Posted: Mon Nov 09, 2015 9:44 pm
by RobertJay

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?


Publishing with Weinre

Posted: Tue Nov 10, 2015 7:34 am
by Serhii Kulibaba

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.


Publishing with Weinre

Posted: Tue Nov 10, 2015 3:50 pm
by RobertJay

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)

Publishing with Weinre

Posted: Tue Nov 10, 2015 4:51 pm
by Illya Stepanov

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.


Publishing with Weinre

Posted: Tue Nov 10, 2015 5:31 pm
by RobertJay

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.


Publishing with Weinre

Posted: Tue Nov 10, 2015 7:52 pm
by Illya Stepanov

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!


Publishing with Weinre

Posted: Tue Nov 10, 2015 9:06 pm
by RobertJay

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