如何调试移动 Safari 崩溃?

发布于 2024-12-03 06:48:19 字数 346 浏览 2 评论 0原文

我正在开发一个基于 jQuery Mobile 的基于浏览器的移动应用程序,我最近所做的一些更改现在导致 safari 在加载时持续崩溃 - 这在至少两个不同的 iPhone 上可以可靠地重现。

由于可用的信息太模糊,无法真正找出导致崩溃的原因,所以我的问题并不是“出了什么问题?”因为它是“你会如何调试 Safari 崩溃?” -- 我已经在努力将我的更改一分为二,直到我获得金牌,但这并不总是一个实用的方法。

编辑:应该澄清调试控制台不会产生任何有用的信息(没有意外的控制台消息),并且错误,无论是什么,都不会在桌面浏览器上显现出来。另外,我所说的崩溃是指浏览器完全锁定,除非从任务管理器中显式终止它并重新启动它,否则我无法使其进入可用状态。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

阳光①夏 2024-12-10 06:48:19

如果 iOS 设备与 iTunes (OSX) 同步,则可以在以下位置找到崩溃日志:
~/Library/Logs/CrashReporter/MobileDevice/

那里可能有一些有用的信息,尽管大多数 MobileSafari 崩溃是由于内存不足引起的。优化 优化 优化

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

以往的大感动 2024-12-10 06:48:19

CrashReporter/MobileDevice/[Your_Device_Name] 找到崩溃日志

与 iTunes 同步后,在设备上点击 General -> 。关于->诊断与诊断用法->诊断与诊断使用数据,但请注意,可能无法按时间对该列表进行排序,因此它有点随机。

有关完整详细信息,请参阅 https://developer.apple.com/bug-reporting/ios/ crash/http://www.chromium.org/developers/how-tos/retriving-crash-reports-on-ios

After syncing with iTunes find the crash logs at CrashReporter/MobileDevice/[Your_Device_Name]

From the device hit up General -> About -> Diagnostics & Usage -> Diagnostic & Usage Data , but note there may be no way to sort this list by time, so it gets kinda random.

For full details reference https://developer.apple.com/bug-reporting/ios/crash/ and http://www.chromium.org/developers/how-tos/retrieving-crash-reports-on-ios

迷雾森÷林ヴ 2024-12-10 06:48:19

如果您使用的是 TestFlight,这可能会帮助您 https://help.apple。 com/xcode/mac/current/#/devc8ced2ea3

转到 XCode 并选择 Window >管理器,然后单击崩溃

在此处输入图像描述

If you are using TestFlight, this might help you https://help.apple.com/xcode/mac/current/#/devc8ced2ea3

Go to XCode and Choose Window > Organizer, and click Crashes

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文