开发者

Flex trace() doesn't print

There's a lot of examples for ActionScript over the web using trace开发者_开发百科() to print results.

I'd tryied it using Flash Builder 4, but it don't print to the console. Where can I see the output?


  1. Are you in debug mode ?
  2. Put a breakpoint on the line where the trace() is wrote (ctrl+shift+b), debug and see if the trace is reached.
  3. Are you printing the right string? try to use also a static text in front when doing trace like trace("Loading file: ", _myFile.url);


If you do not want to use Flash Player debugger, but you want to log messages without annoying Alert popups, you can easily log to the Firebug console.


Are you sure that you are running the debug build and not the release build?


I had the same problem even with the debug player. I could step right past a trace call in the debugger with no console output. I was pulling my hair out checking mm.cfg, flex-config.xml, .actionScriptProperties and all the options I could find in FlexBuilder. Nothing worked...

..until I rebooted my machine (Windows XP 64-bit). No other changes necessary!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜