如何调试 swf 浏览器崩溃 [英] how to debug swf browser crashes

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

问题描述

我的 swf 偶尔会导致浏览器崩溃(或者只是像 chrome 告诉我的那样导致插件崩溃).

My swf is occasionally crashing the browser (or just crashing the plugin as chrome tells me).

我如何诊断错误?我正在使用 flex 为 Flash Player 9 开发.

How do I diagnose the bug? I am developing for flash player 9 using flex.

我尝试过的事情:

  • 打开日志文件,以便我可以看到 trace("...") 输出.但是,我的日志文件和我的 swf 以不一致的终止点结束.
  • 安装调试版的 Flash Player
  • 尝试了不同的浏览器(今天我在 vista 上,可以在四个浏览器上重现该错误).

我希望插件有一个 [清晰] 的堆栈跟踪.有什么建议吗?

I am hoping there is a [legible] stack trace from the plugin. Any suggestions?

推荐答案

很可能是 Flash 插件在刷新日志文件之前导致崩溃.我唯一可以推荐的是安装 Windows 调试工具.

It's likely that the flash plugin is causing the crash before your log files can be flushed. The only thing I can recommend is to install the Windows Debugging Tools.

然后调出命令提示符(如果在 vista 中以管理员身份),并键入以下内容:

Then bring up a command prompt (as administrator if in vista), and type the following:

cd "%programfiles%\Debugging Tools for Windows"
adplus -crash -pn iexplore.exe

(显然,将 iexplore.exe 更改为您正在运行的任何浏览器.)

(Obviously, change iexplore.exe to whatever browser you are running against.)

现在,在浏览器中使用您的 flex 应用程序,直到它崩溃.这将在 %programfiles%\Debugging Tools for Windows\Crash_Mode__Date_02-18-2009__Time_14-40-0202(将使用实际日期)中创建崩溃转储.

Now, use your flex application in the browser until it crashes. This will create a crash dump in %programfiles%\Debugging Tools for Windows\Crash_Mode__Date_02-18-2009__Time_14-40-0202 (actual date will be used).

您现在可以将该小型转储(最小的 dmp 文件)发送给 Adob​​e,以便他们对其进行正确分析.

You can now send that mini-dump (smallest dmp file) to Adobe so they can analyze it properly.

如果您想查看(本机)调用堆栈以发现问题的原因,您可以加载 windbg 并加载转储文件(文件 > 打开崩溃转储).加载后,在 windbg 命令行中键入以下内容并按 Enter:

If you want to view the (native) call stacks in hope of discovering what caused the issue, you can load windbg and load the dump file (File > Open Crash Dump). Once it's loaded type the following at the windbg commandline and hit enter:

~* kb 2000

这篇关于如何调试 swf 浏览器崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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