4

When testing my web app on the iPad, I can enable the debugging console of Safari Mobile and happily read my logging output. I can not find a way to do the same for a stand-alone app, meaning the web app was "added to the home screen" and the window.navigator.standalone flag says true, but there is no "Debug Console" banner at the top like there is inside Safari Mobile.

I have a bug that only happens in stand-alone mode and am almost ready to add a little debugging console to my web app, or worse, go to the dreaded alert debugging method.

So, SO, any awSOme ideas?

guidos
  • 522
  • 6
  • 11
  • Even I'm facing similar issue. Could you let me know if you were able to debug the stand-alone app. https://stackoverflow.com/questions/47713639/debugging-web-apps-added-to-home-screen-on-ios-safari – Gunner Dec 08 '17 at 12:06
  • Yes, I remember that remote debugging via Safari worked like a charm and is definitely the way to go. Have you tried the steps in the second link in the accepted answer? – guidos Jan 04 '18 at 03:37
  • Ya, I tried it but no luck. When opened the app on iOS Safari, I was able to debug. When I added the app to home screen, Safari did not detect the app. In the develop menu, i was getting 'No Inspectable Applications'. – Gunner Jan 04 '18 at 04:32

1 Answers1

1

use http://www.iwebinspector.com - only for ios5 and up though..

for ios6 you can use safari6 and remote debugging http://moduscreate.com/enable-remote-web-inspector-in-ios-6/

if you are not on mac or want true remote debug, you can use jsconsole.com

Peter Madsen
  • 419
  • 5
  • 6
  • 2
    Any ideas for someone who isn't using a Mac? ( I hope not, because I'm using this opportunity to request my boss get me a mac...) – Bryce Fischer Jun 05 '12 at 13:33
  • jsconsole might work out for you - http://jsconsole.com/remote-debugging.html – Peter Madsen Jun 08 '12 at 22:36
  • jsconsole doesn't support remote debug any more. Details: https://github.com/remy/jsconsole/issues/101 Use https://remotejs.com/ instead – Proggear Jan 29 '21 at 11:26