trace() 在 flashbuilder 4 中不起作用?

发布于 2024-08-14 19:15:06 字数 96 浏览 6 评论 0原文

我正在尝试使用actionscript 3.0并使用trace(),它永远不会在flash播放器或输出区域中输出变量跟踪的内容? 如何协调或我应该启用某些功能? 有什么问题吗?

i'm trying to use actionscript 3.0 and using trace(), it never outputs content of trace of variable either in flash player or in output area?
how to coorect or should i enable something?
whats the problem?

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

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

发布评论

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

评论(3

轮廓§ 2024-08-21 19:15:06

正如其他人指出的那样,跟踪仅在调试时有效。
如果您希望在运行“release”时转储信息,则需要使用 flex 提供的logging api

As others have pointed out, trace only works when in debug.
If you want information to get dumped out when running "release", you'll need to use the logging api that flex provides.

鲸落 2024-08-21 19:15:06

当您测试电影时,您使用的是“运行应用程序”还是“调试应用程序”?我不确定这在 4 中是否有所改变,但如果你只是运行它,默认情况下会忽略跟踪操作。

When you test your movie, are you using "Run Application" or "Debug Application"? I'm not sure if this has changed in 4, but if you just run it, trace actions are omitted by default.

昇り龍 2024-08-21 19:15:06

请注意,您还可以从命令行查看 Flash 播放器调试版本的输出。这样您就不必在 Flash Builder 调试器中运行应用程序。您需要创建一个 mm.cfg 文件。他们多次更改了该文件的位置,因此存在很多关于该文件所在位置的错误信息。这里的说明看起来像是最新的 - http:// help.adobe.com/en_US/Flex/4.0/UsingSDK/WS2db454920e96a9e51e63e3d11c0bf69084-7fc9.html

Note that you can also view the output from the debug version of the flash player from the command line. Then you don't have to run the application in the Flash Builder debuger. You need to create a mm.cfg file They have changed where this file has to be located a number of times so there is a lot of misinformation about where the file goes. The instructions here look like the most upto date - http://help.adobe.com/en_US/Flex/4.0/UsingSDK/WS2db454920e96a9e51e63e3d11c0bf69084-7fc9.html

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