Is it possible to Debug iOS app on Windows/Linux? - ios

is there a way how to debug an iOS mobile app on Windows or Linux (Ubuntu)?
I have an application which runs fine on Android, but it has some flaws on iOS. For Android debugging, I always used the Chrome device inspector and I am wondering if it’s possible for iOS too?
The Webkit Adapter I found (https://github.com/RemoteDebug/remotedebug-ios-webkit-adapter) works for debugging websites opened on iPhone via SAFARI browser, but not for the mobile app. Any ideas?
Thanks a lot for any suggestions.

Yes, you can develop your own lldb to support debugging non-jailbroken iOS device on Window, like this

Related

Debug an IOS app on Windows PC

I have developed a mobile app for IOS, Andriod and Windows devices. The application was developed with Phonegap.
I am running into a few issues while testing. Everything works perfect on Android, Windows and iPad, however once the app is on an iPhone 7 with operating system 11.2.5 there are a few "quirks". For instance select menus are self selecting and causing the app to crash. This only happens on the iPhone.
I am trying to debug this using weinre to debug, and I am unable to successfully get the iPhone to connect.
Is there options to see a console log, web inspector to find these errors?
Any help is greatly appreciated.
Phonegap serve and weinre.
Running both. I was able to pin point the issue..
Needed to update plugins.

remote debug chrome on iphone using windows

I know to debug mobile safari you'll need a mac, but is it possible to debug ios version of chrome on a windows machine (via a usb cable)? seems like a simple question, but for some reason I can't find anything on it using google. everything I find always seems to point to debugging mobile safari via mac or debugging mobile chrome for mac users.
FYI: I plan on getting the device, but I need to know if the aforementioned is possible before getting the iphone.

Debugging PhoneGap on Device

Normally I'm a JEE guy but these days I'm working on a mobile app. I chose PhoneGap because there are not so many needs to UI and I thought this would be the easiest way to serve the app on many platforms.
I'm wondering if my setup is good and if it's possible to get console output when running on the device. I'm working on MacOS and iPhone6.
I installed PhoneGap and Cordova via npm and serving the files with phonegap serve.
For local debugging I'm using the chrome plugin "Ripple".
For debugging on the device I'm using the PhoneGap Developer App from the AppStore, together with weinre on my Laptop to get some debugging data. In weinre I can see everything except console outputs. Is this normal? Or any idea how I could get the console to weinre, too?
I also found some tutorials on the web using XCode and some native iPhone emulator but didn't get this working yet. Which way is the more preferable way of debugging on device?
You don't need any tool for debugging cordova app. For iOS just start the app in stimulator and start safari. In safari go to Develop > 'your pc name' > ios simulator.
http://webdesign.tutsplus.com/articles/quick-tip-using-web-inspector-to-debug-mobile-safari--webdesign-8787
For Android run the app in your device and in the chrome go to http://chrome://inspect/#devices
Weinre is quite old and should not be be used anymore, instead, you want to use the remote debugging tools in your browser. For iOS, you can use Safari to debug your Cordova app. I've got a full article here, https://dzone.com/articles/overview-mobile-debugging, but the process involves doing one setting on your mobile device, and then simply opening up Safari and going to the debug menu. You can also do this with Chrome and Android apps.
Another option is GapDebug (https://www.genuitec.com/products/gapdebug/) which lets you do iOS and Android together in one Chrome tab.

Run JQuery Mobile App in iPhone

I have a JQuery Mobile app. I'm curious how it looks/runs within an iPhone. I do not have an iPhone. I also, do not have a MAC. Are there any downloadable tools that I can use on a Windows 7 machine to see how the app looks within iPhone?
Thank you!
If you just need to see how your JQM app looks on iPhone you can try iphonetester.com.
You can also might be interested in much more advanced web based tool BrowserStack.
And finally if you need more than that (for example attach to iOS Safari instance to debug your mobile app code) than you need real or virtualized OSX and xCode iOS Simulator.
You can't do that in the Windows environment.
But you can use your computer to create a hackinntosh. A hackintosh is simply any non-Apple hardware that has been made—or "hacked"—to run Mac OS X. This could apply to any hardware, whether it's a manufacturer-made or personally-built computer.
Than you can use it to test an iPhone jQM app in the XCode iPhone emulator. Only downside of this method is that you can not use it to deploy final all into Apple app store.
Here's a short tutorial on what is a hackintosh and how you can deploy it on your computer: http://lifehacker.com/5841604/the-always-up+to+date-guide-to-building-a-hackintosh
And here's an youtube "how to" video: http://www.youtube.com/watch?v=pEW6d7m5Zc0

Debugging web app in iPad Simulator

I am developing a web app for iPad and testing it on Safari on Mac and Safari on iPad Simulator. Now there are some issues with CSS in iPad Simulator which work quite well in Safari on Mac.
Now my question is,
Is there a powerful debugging tool for Safari in iPad Simulator?
When running safari in an XCode device simulator, the desktop Safari (v6) Develop menu shows those devices. From there, you can fire up the developer tools (DOM browser etc.) for the mobile browser. This helped me debug an mobile safari css issue without hardware.
Note: As of iOS6 this is not the correct way of doing remote debugging, leaving this answer for historical reasons but you should look into remote inspection with Safari, here is a good article: http://jeffreysambells.com/2012/09/22/ios-safari-web-inspector
Have a look at this, (a bash script I wrote) https://gist.github.com/2241976. It will allow you to open the iPad simulator and run Webkit's remote inspector, which will look just like this.
iWebInspector is quite a powerful tool for the iOs simulator's Safari.
It uses the same inspector as Chrome and it works nicely (I've used it myself and found it really helpful).
From their website
iWebInspector is a free tool to debug, profile and inspect web
applications running on iOS Simulator (iPhone or iPad). You can check
resources, see and change HTML & CSS, use breakpoints on JavaScript
code, create charts and more just as if you were on Safari for
Desktop, Chrome or Firebug.
It works for any web in Safari -the web browser-, for a chrome-less
webapp (full-screen) and also for apps using UIWebView -including
PhoneGap applications-.

Resources