如何在 Google Chrome 中调试选项卡崩溃 [英] How do I debug a tab crash in Google Chrome

查看:28
本文介绍了如何在 Google Chrome 中调试选项卡崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个单页应用程序会随机崩溃整个浏览器选项卡.我观察了一个多小时的记忆,但它并没有增加,一切看起来都很好.过了一段时间后,标签突然崩溃了.

We have a single page application that randomly crashes the whole browser tab. I observed the memory for more than an hour but it wasn't increasing and everything looks just fine. Than out of a sudden after some more time passes, the tab crashes.

我在

C:UserscburgdorfAppDataLocalGoogleCrashReports

但是 Chrome-last.dmp 已经完全过时了.是否有任何地方可以查找有关崩溃的其他信息?更何况它是一头难以繁殖的野兽.

but the Chrome-last.dmp is totally outdated. Is there any place where I can look for additional information about the crash? Not to mention it's a hard to reproduce beast.

我想知道我是否可以在连接了 windbg 的情况下启动 Chrome 并等待(2 小时左右 sigh)标签崩溃.这行得通吗?

I wonder if I could start Chrome with windbg attached and wait (2 hours or so sigh) for the tab crash. Would that work?

更新

你们所有人都给出了很好的答案,并为寻找错误提供了有价值的建议.最后,我能够使用以下步骤重现该错误并获得清晰的故障转储:

All of you gave good answers and provided valueable advice for bug hunting. In the end I was able to reproduce the bug and get a clear crash dump using the following steps:

1.) windbg.exe -o chrome.exe
2.) reproduce crash
3.) .dump /ma C:PathToACrashDumpFile.dmp (as Paul pointed out)
4.) end session and load the crash dum with windbg
5.) use !analyze -v to extract valuable information

推荐答案

一旦 WinDbg 入侵,使用此命令创建完整的故障转储:

Once WinDbg breaks in, use this command to create a full crash dump:

.dump /ma C:PathToACrashDumpFile.dmp

这篇关于如何在 Google Chrome 中调试选项卡崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆