gpt4 book ai didi

apache-flex - Flash Builder (Flex) ANT 构建和调试

转载 作者:行者123 更新时间:2023-12-04 02:34:30 25 4
gpt4 key购买 nike

我正在尝试将 ANT 与 Flash Builder 4 一起使用以进行编译和调试。编译是简单的部分,但很难让调试器工作。

我想使用 ANT 在 Flash Builder 中调试 SWF 文件,以便断点、控制台跟踪和一切正常工作。

到目前为止我的脚本。将 *.as 构建为 *.swf 并从 bin-debug 移动到 deploy 文件夹。 如何为创建的 SWF 启动 Flash Builder 调试器?


<target name="Compile level 1">
<antcall target="compile flex file">
<param name="file" value="GameOffice"/>
</antcall>
<antcall target="open player">
<param name="file" value="GameOffice.swf"/>
</antcall>
</target>

<target name="compile flex file">
<mxmlc file="${SRC_DIR}/${file}.as" output="${BUILD_DIR}/${file}.swf"
actionscript-file-encoding="UTF-8"
keep-generated-actionscript="true"
incremental="true"
static-link-runtime-shared-libraries="true"
show-actionscript-warnings="true"
failonerror="true"
debug="true"
optimize="false">

<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
<source-path path-element="${FLEX_HOME}/frameworks" />

<compiler.include-libraries dir="${basedir}/libs" append="true">
<include name="HelloThereLibGames.swc" />
<include name="HelloThereLibStructure.swc" />
<include name="HelloThereLibUtils.swc" />
</compiler.include-libraries>

<metadata description="Hello There Production">
<contributor name="Fredrick Bäcker" />
</metadata>

</mxmlc>
<copy todir="${DEPLOY_DIR}" file="${BUILD_DIR}/${file}.swf"/>
</target>

最佳答案

我在谷歌上做了一次尝试:http://blogs.4point.com/armaghan.chaudhary/2009/04/remote-debugging-using-flex-builder-ide.html

我不明白您为什么要在 flashbuilder 中使用 ant 进行构建。好像是过溪取水?

恕我直言,自动化构建脚本属于 CI 环境,例如 hudson。我认为这是在帮自己一个忙,让我的开发环境处理本地构建和调试的模糊问题。

祝你好运

关于apache-flex - Flash Builder (Flex) ANT 构建和调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4615231/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com