See trace() of Flash when running in browser

前端 未结 9 1059
天命终不由人
天命终不由人 2020-12-23 14:55

What\'s an easy way to see the trace() output of Flash/Flex movies when running in any browser?

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-23 15:09

    Check out De Monster's MonsterDebugger. You can debug track objects, traces, and display chains in a lovely AIR application. Very fun to use. And it's open source!

    http://demonsterdebugger.com/

    You can also configure Flash and Flex to write to a log file. Check out how to do that here:

    http://livedocs.adobe.com/flex/3/html/help.html?content=logging_04.html

    I've been using Monster lately, but I used to have an alias that ran a unix "tail" on the flashlog file that would effectively give me a logging window for "in browser" tracing:

    alias flashlog='tail -f /PATH/TO/flashlog.txt'
    

    Or if you have a log viewer (like Console on Mac OS), you can view the log there. The only reason I suggest these options is that FlashTracer is pretty "crashy" ;)

提交回复
热议问题