Search code examples
jquery-mobilemobile-safari

How to debug a mobile safari crash?


I'm developing a browser-based mobile app built on top of jQuery Mobile, and some recent change I made is now causing safari to consistently crash on load -- this is reliably reproducible on at least two different iphones.

Since the information available is way too vague to actually figure out what is causing the crash, my question isn't so much "what's going wrong?" as it is "how would you go about debugging a safari crash?" -- I'm already working on bisecting my changes until I strike gold, but that's not always a practical approach.

EDIT: Should've clarified that the debug console doesn't produce any useful information (there are no unexpected console messages), and that the error, whatever it may be, doesn't manifest itself on a desktop browser. Also, by crash I mean the browser completely locks up and I can't get it to a usable state except by explicitly killing it from the task manager and restarting it.


Solution

  • If a iOS device is synced with iTunes (OSX) crash logs can be found at ~/Library/Logs/CrashReporter/MobileDevice/

    There might be some useful info there although mostly MobileSafari crashes are caused on account of low memory. Optimization optimization optimization