Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

view iphone console logs without a mac

Is there a way to view the iphone console logs without having a mac ?

It used to be possible using the iPhone Configuration Utility but it does not seem to be available any longer. I saw a tool called iTools but it seems to require a 32bit version of itunes which is also not available any more.

Given an iPhone device + windows + linux, Is there any workaround / tool to view the iphone console logs?

like image 485
epeleg Avatar asked Aug 22 '26 05:08

epeleg


2 Answers

Realizing it is over half a year ago you asked this, but since it does not have an accepted answer yet:

I ran into this very same issue over and over, and got fed up with it, so I decided to have a go at writing a script that displays console messages in HTML, so you can just view everything in the webpage itself, without having to resort to a console-replacement or a tedious remote debugger (for which you, indeed, require a Mac), without having to modify each console call in existing code.

The key lies in 'replacing' the four main functions in window.console: log, warn, error and trace. This is done by redifining each method, adding own code to that, and calling the original method in the end. Jakub Fiala wrote the basic script for that, on which I built the rest: https://gist.github.com/jakubfiala/8fe3461ab6508f46003d

I dubbed it 'MobileConsole'. It is quite unobtrusive and will 'catch' all console.log (or .warn, .error or .trace) events, and even bind to window.onerror.

I have created a separate page for this script with an elaborate explanation on how it works, including a demo, over here.

like image 107
Klaas Leussink Avatar answered Aug 23 '26 22:08

Klaas Leussink


Download this from the app store onto the iphone, you can then view logs directly on the phone:

https://itunes.apple.com/us/app/console/id317676250?mt=8

Please note, this is an old app, it will crash when launched, then on reopening it will show you the device logs.

If that fails, here is a link to the iPhone configuration utility for windows: http://download.cnet.com/iPhone-Configuration-Utility-for-Windows/3000-20432_4-10969175.html

like image 22
Swinny89 Avatar answered Aug 23 '26 22:08

Swinny89



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!