Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 442
pdpi Avatar asked Sep 05 '11 13:09

pdpi


People also ask

How do I fix Safari crash on my iPhone?

Force Quit the Safari App in iOS, Relaunch Sometimes just force quitting the app and relaunching Safari is sufficient to resolve a problem with the browser: Double click on the Home button, then swipe UP on the Safari app to close it, relaunch as usual.

How do I view console logs in Safari Mobile?

Open the iPhone Settings menu. On an iPhone with an early version of iOS, access the Debug Console through Settings > Safari > Developer > Debug Console. When Safari on the iPhone detects CSS, HTML, and JavaScript errors, details of each display in the debugger.


1 Answers

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

like image 76
luwes Avatar answered Oct 27 '22 17:10

luwes