Необходимо поставить отладочную версию Flash Player, у меня стоит Stand-alone вариант. В файле /Library/Application Support/Macromedia/mm.cfg прописать как минимум две строки:
ErrorReportingEnable=1 TraceOutputFileEnable=1
Flash-приложение обязательно должно быть откомпилировано с флагом debug=true.
Выполнение отлаживаемого приложения в дебаг-версию флэш плеера создаст файл ~/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt, в котором будут собраны все трейсы и сообщения об ошибках.
Гадкий FDT все время просит купить лицензию для расширения предоставляемых возможностей. Free версия, к сожалению, для меня очень ограничена, а жаль :(. Так что правим наш build.xml для ant:
<!-- build.properties --> FLEX_HOME=/path/to/flex46/ SRC_DIR=${basedir}/src LIBS_DIR=${basedir}/lib DEPLOY_DIR=${basedir}/bin
<!-- flexTasks.tasks --> mxmlc=flex.ant.MxmlcTask compc=flex.ant.CompcTask html-wrapper=flex.ant.HtmlWrapperTask asdoc=flex.ant.AsDocTask
<!-- build.xml --> <project name="Flex Ant Tasks Build Script" default="compile flex project"> <!-- load previously defined configuration properties file --> <property file="build.properties" /> <!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project --> <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/> <!-- delete and create the DEPLOY dir again --> <target name="init"> <delete dir="${DEPLOY_DIR}" /> <mkdir dir="${DEPLOY_DIR}" /> </target> <!-- Build and output the Main.swf--> <target name="compile flex project" depends="init"> <mxmlc file='${SRC_DIR}/Main.as' output="${DEPLOY_DIR}/test.swf" debug="true"> <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/> <arg line="-target-player=10" /> <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries> <source-path path-element='${SRC_DIR}'/> <compiler.library-path dir='${LIBS_DIR}' append='true'> <include name='*.swc'/> </compiler.library-path> </mxmlc> </target> </project>