Flex Builder - 探查器 - 无法运行探查器“无法连接到应用程序以获取配置文件数据,请尝试再次分析应用程序”

发布于 2024-10-27 22:26:41 字数 823 浏览 5 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

抚你发端 2024-11-03 22:26:41

一些想法:

  1. 将端口更改为 9999
  2. 您在输出中遇到任何错误吗? (PreloadSwf 路径必须是本地可信的:)
  3. 更改您的浏览器! (首选项/常规/Web 浏览器)也许 Firefox 表现不佳
  4. 您是否在该特定浏览器中运行 flash 调试器?
  5. 可能编辑您的 mm.cfg 文件(即在此处查看:http://jpauclair.net /2010/02/10/mmcfg-宝藏/)

Some ideas :

  1. Change the port to be 9999
  2. Are you getting any errors in out Output? (PreloadSwf paths must be local trusted: )
  3. Change your browser! (Preferences/General/Web Browser) Maybe Firefox is acting scummy
  4. Are you running flash debugger in that specific browser?
  5. Possibly editing your mm.cfg file (i.e. check out here : http://jpauclair.net/2010/02/10/mmcfg-treasure/)
攒一口袋星星 2024-11-03 22:26:41

我刚刚发现,在 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)

Oo萌小芽oO 2024-11-03 22:26:41

似乎这个问题已经在这里得到解答

Flash Builder“无法连接”错误< /a>

it appears as if this question was already answered over here

Flash Builder "Unable to Connect" error

梦忆晨望 2024-11-03 22:26:41

我找到了一个不方便的解决方案。通过在 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.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文