actionscript-3 - 有没有办法运行两个调试器实例?

标签 actionscript-3 flash debugging flash-builder adobe-cirrus

我正在从事一个多人游戏项目,它在 Cirrus 上运行。

最好能够调试正在运行的游戏的两个实例,而不仅仅是一个,但是一旦我发送新的调试调用,Flash Builder 就会停止一个调试实例。

如果有办法同时运行 2 个调试实例,您有什么想法吗?也许打开 2 个 Flash Builder.. 但它说明了有关工作区的一些信息..

不知道我问的是否可能。

谢谢!

最佳答案

哎呀,抱歉,我刚说完这句话,我就发现了

The debugger is an agent that communicates with the application that is running in Flash Player. It connects to your application with a local socket connection. As a result, you might have to disable anti-virus software to use it if your anti-virus software prevents socket communication. The debugger uses this connection to transfer information from the SWF file to the command line so that you can add breakpoints, inspect variables, and do other common debugging tasks. The port through which the debugger connects to your application is 7935. You cannot change this port.

但是我会研究一下源代码,使用不同的端口设置构建 fdb 应该不那么困难。

编辑:

好吧,看起来你要做的就是像这样运行 fdb:

$ ./fdb -p=9090

9090 - 只是一个随机选择的端口号,然后您需要右键单击正在调试的 SWF 并将其配置为连接到 localhost:9090。

编辑2:

如果不起作用,则将 ${SDK}/modules/debugger/src/java/flash/tools/debugger/concrete/DProtocol.java 中的第 51 行更改为其他端口,然后重建 SDK (也许您只能构建调试器项目,但只是“为了确保”),您还有另一个版本的调试器将连接到不同的端口。

关于actionscript-3 - 有没有办法运行两个调试器实例?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10502111/

相关文章:

java - 用作接口(interface)替代的内部类示例

linux - 如何在 Mono 中嵌入 flash?

c++ - 了解一些 C++ 编码实践

actionscript-3 - Flash ActionScript 文件突然无法编译?

php - 在 mySQL 中将字节数组保存到 BLOB 时出现错误 'You have an error in your SQL syntax'

javascript - 隐藏在其他 Flash 元素后面的 Flash fancybox 弹出窗口

c++ - Adobe Alchemy 编译的 SWC - 不确定如何为 FlasCC 编译库

debugging - REST API 调试工具

java - 从 Java 代码调试 Android 应用程序

actionscript-3 - AS3 : Scaling Up Multiple Elements from Their Own Centers Each