trace() 在 flashbuilder 4 中不起作用?
我正在尝试使用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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如其他人指出的那样,跟踪仅在调试时有效。
如果您希望在运行“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.
当您测试电影时,您使用的是“运行应用程序”还是“调试应用程序”?我不确定这在 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.
请注意,您还可以从命令行查看 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