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?
- Are you in debug mode ?
- Put a breakpoint on the line where the trace() is wrote (ctrl+shift+b), debug and see if the trace is reached.
- 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!
精彩评论