gpt4 book ai didi

debugging - 为什么 Firefox 不会在 Ubuntu 中跟踪到 flashlog.txt?

转载 作者:太空宇宙 更新时间:2023-11-03 17:00:15 26 4
gpt4 key购买 nike

好吧,我和我的 friend 正忙得不可开交,试图配置 Adob​​e Flex SDK 以便在我们的 Ubuntu 机器上正常工作。我们已经安装并配置了 SDK 来编译 ActionScript 文件,但是当我们在 Firefox 中执行编译后的 swf 时,FlashPlayer 调试器无法将跟踪或错误记录到 flashlog.txt。

我们在 Firefox 中安装了 Flash Player Debugger,并在我们的主目录中安装了一个 mm.cfg 文件。

链接到我们尝试过的内容:

  1. http://www.arulraj.net/2010/08/flash-player-debugger-in-ubuntu.html

  2. http://www.gregoryprogrammer.com/2012/12/actionscript-3-code-compilation-in-inux/

  3. http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fc9.html

  4. http://helpx.adobe.com/flash-player/kb/configure-debugger-version-flash-player.html

我们使用的版本:

火狐浏览器 18.0.2

Ubuntu 操作系统 12.0.4

最新的 Flex SDK

最佳答案

我注意到您没有提到使用 -debug 标志进行编译。以下是我采取的步骤:

  • 确保您使用的是调试版播放器(点击 flashplayerversion.com 进行检查)。这在浏览器中变得越来越棘手,尤其是在 64 位 Linux 中。如今,Firefox 可能比 Chrome 更容易。您还可以尝试位于 here 的调试内容投影仪(也称为独立播放器) .

  • 拥有 TraceOutputFileEnable=1 的 ~/mm.cfg 文件。这是我的:

> cat ~/mm.cfg ErrorReportingEnable=1TraceOutputFileEnable=1
  • 在您知道它将被执行的地方使用跟踪方法:
> cat Main.aspackage {  import flash.display.Sprite;  public class Main extends Sprite {    public function Main() {      trace("Hello flashlog.txt");    }  }}
  • 使用 -debug 选项编译 SWF:
  mxmlc -debug Main.as
  • 我将使用内容投影仪进行测试:
>flashplayerdebugger Main.swf &>tail ~/.macromedia/Flash_Player/Logs/flashlog.txtHello flashlog.txt

或者打开一个专用终端来跟踪日志文件的写入:

>tail -f ~/.macromedia/Flash_Player/Logs/flashlog.txt

关于debugging - 为什么 Firefox 不会在 Ubuntu 中跟踪到 flashlog.txt?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17131685/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com