如何使批处理文件使用Flex命令行调试程序?

时间:2015-03-28 05:14:46

标签: actionscript-3 batch-file flex flex4

使用Flex 4.6 SDK编译我的mxml文件后。我试图通过Flash Player投影仪内容调试器使用Windows批处理文件与Flex调试器一起运行SWF文件。我可以使用:

启动调试器和会话
fdb File.swf

但是我需要在控制台中输入两次continue来运行应用程序。

我尝试过使用:

(echo run File.swf
echo continue
echo continue)| fdb

但是会返回错误:

(fdb) Do you want to attempt to halt execution? (y or n) Not confirmed.
[SWF] c:\users\austin\documents\newproject\src\File.swf\[[DYNAMIC]]\1 - 674,784 bytes after decompression
[SWF] c:\users\austin\documents\newproject\src\File.swf\[[DYNAMIC]]\2 - 381,334 bytes after decompression
[trace] Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml.
The 'secure' attribute is only permitted in HTTPS and socket policy files.
See http://www.adobe.com/go/strict_policy_files for details.
[SWF] c:\users\austin\documents\newproject\src\File.swf\[[DYNAMIC]]\3 - 1,148,91
9 bytes after decompression
Additional ActionScript code has been loaded from a SWF or a frame.
To see all currently loaded files, type 'info files'.
Set additional breakpoints as desired, and then type 'continue'.

我的总体目标是通过批处理文件在调试器上运行SWF文件,以查看命令提示符中trace("functions")的返回。

1 个答案:

答案 0 :(得分:0)

fdb -unit工作了!

这是最终的工作代码:

(echo run File.swf
echo continue
echo continue)| fdb -unit

https://forums.adobe.com/thread/774121?tstart=0

找到解决方案