Flex Builder - 探查器 - 无法运行探查器“无法连接到应用程序以获取配置文件数据,请尝试再次分析应用程序”
我在 Windows 7 64 位上的 Eclipse 3.6.2 上使用 Flex Builder 4 插件。当然,我使用 Eclipse 32 位和 Java 32 位。 当我在 Profiler 模式下运行 AIR 应用程序时,它给出了经典错误: “无法连接到应用程序以获取配置文件数据,请尝试再次分析应用程序”
1) 我已经尝试将 mm.cfg 放入我的 c:\users\username\ 和我的 Eclipse Project 文件夹中,但仍然没有'不工作。这是mm.cfg中写的内容
<代码> PreloadSwf=文件:///D:/project/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=8888 <代码>
AS3采样=1
AS3自动启动采样=1
错误报告启用=1
TraceOutputFileEnable=1
最大警告数=100
2) 我已经禁用防火墙和防病毒软件,端口 8888 已开放用于传入和传出的 TCP 连接。
3)我尝试使用 Flex SDK 4.0 和 4.1
4) 我将我的 Flash Player 调试版本更新到 10.2,因为我在某个地方搜索 10.1 不支持 Profiler,但仍然无法工作,即使我的项目是 AIR。 (顺便说一下,我已经尝试过Flash Project,但仍然不起作用)
5)我还尝试删除第一行,即指示 PreloadSwf 的行,但它仍然不起作用
我还在使用 Windows 7 32 位的新计算机上安装了类似的设置,它给出了同样的错误。 有什么想法吗?
I use Flex Builder 4 Plugin on Eclipse 3.6.2 on Windows 7 64 bits. Of course, I use Eclipse 32 bits with Java 32 bits.
When I run AIR application in Profiler mode, it gave me the classic error:
"unable to connect to the application to fetch profile data please try profiling the application again"
1) I already try putting mm.cfg in my c:\users\username\ , and my Eclipse Project folder and it still didn't work. Here's what written in mm.cfg
PreloadSwf=file:///D:/project/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=8888
AS3Sampling=1
AS3AutoStartSampling=1
ErrorReportingEnable=1
TraceOutputFileEnable=1
MaxWarnings=100
2) I already disable Firewall and Antivirus, port 8888 has been open for TCP connection for both incoming and outgoing.
3) I try with both Flex SDK 4.0 and 4.1
4) I update my flash player debug version to 10.2 because I search somewhere that 10.1 doesn't support Profiler, still didn't work, even though my project is AIR. (By the way, I have try with Flash Project and it still not work)
5) I have also try remove the first line, the one that indicates PreloadSwf, and it still doesn't work
I also install this similar setting on fresh machine, using Windows 7 32 bits, and it give the same error.
Any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
一些想法:
Some ideas :
我刚刚发现,在 Windows 7 上,如果您以管理权限启动 Flash Builder 或 Eclipse,探查器将无法连接。确保在没有“以管理员身份启动”的情况下启动 Flash Builder 或 Eclipse(我愚蠢地创建了一个启动 Eclipse 的图标,其中包含此选项)
I just found that on Windows 7, if you start your Flash Builder or Eclipse with administration privileges, the profiler will not connect. Be sure to start your Flash Builder or Eclipse without “Start as Administrator” (I had foolishly created an Icon to start Eclipse which include this option on)
似乎这个问题已经在这里得到解答
Flash Builder“无法连接”错误< /a>
it appears as if this question was already answered over here
Flash Builder "Unable to Connect" error
我找到了一个不方便的解决方案。通过在 Windows 中创建另一个用户,并赋予其管理员权限。我可以添加同一个项目,Profiler 工作得很好。我创建用户的方式可能存在一些问题。 (这是一个谜,因为我有两台不同规格的电脑,运行几乎相同的应用程序,并在我的用户帐户上收到同样的问题。我仍然不知道为什么另一个用户名给出不同的结果,但不同的电脑不会' t。)
I have found an inconvenient solution. By creating another user in Windows, and give it administrator privilege. I can add that very same project and Profiler work just fine. Might be there is some problem in my way of creating user. (This is quite a mystery, because I have 2 PCs with different spec, running almost the same application, and receive this same problem on my user account. I still have no idea why another user name give different result, but different PC won't.)