Flex Builder 4 无法运行或调试
我一直在 Flash BUilder 4.0 中工作。我安装了 Flash Builder 4.5,并切换到我用于 4.0 的工作区。然后我们被告知要回到 4.0,现在我无法运行或调试。我可以构建,但随后我必须双击 .html 文件才能运行。右键单击不会弹出运行或调试,并且运行和调试图标不在我的工具栏中。有什么想法吗?我想在重新安装之前检查一下它是否简单。
I've been working in Flash BUilder 4.0. I installed Flash Builder 4.5, and switched to the workspace I had used for 4.0. Then we were told to go back to 4.0, and now I can't run or debug. I can build, but then I have to double click on the .html file to run. Right clicking doesn't bring up run or debug, and the run and debug icons are not in my toolbar. Any ideas? I thought I would check if it is something simple before I reinstall.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
首先创建工作区的完整备份,以便您随时可以回到之前的情况!
尝试从工作区中删除隐藏的 .metadata 文件夹,从工作区中删除所有项目(但当然不是从磁盘!)。
重新启动 Flash Builder,打开工作区文件夹,然后重新导入它们。
如果上述方法不起作用,您的项目可能已损坏。
要解决此问题,您必须查看项目文件夹中隐藏的 .actionScriptProperties 和 .project 文件。
创建一个新的 4.0 项目并将这些文件的值与损坏的项目文件进行比较。尤其要注意项目的性质。
如果仍然不起作用,请删除您的工作区,然后创建一个新工作区。
创建一个新项目并将损坏项目的所有源文件复制到该项目中。
不要复制 .actionScriptProperties 和 .project 文件(这是复制整个文件夹时得到的文件,因为它们是隐藏文件)
干杯
Create a full backup of your workspace first so you can always go back to the previous situation!
Try removing the hidden .metadata folder from your workspace, remove all your projects from your workspace (but of course not from the disk!).
Restart Flash Builder, open your workspace folder and then reimport them.
If the above does not work, your project might be corrupted.
To fix this, you will have to take a look at your hidden .actionScriptProperties and .project files in your project folder.
Create a new 4.0 project and compare the values of these files to your corrupted project's file. Look especially at the project natures.
If that still doesn't work, remove your workspace, create a new one.
Create a new project and copy all source files of your corrupted project into this project.
Do not copy the .actionScriptProperties and .project files (which is what you get when copying over the whole folder since they are hidden files)
Cheers
来手动添加运行/调试按钮
您可以通过编辑“首先关闭FB”并备份文件 !
然后搜索带有
label="Flash"
的
-Tag。将内容粘贴到
-Tag 内,可能位于以下行
之后Save file and start FB。
You can manually add the run/debug-buttons by editing
First close FB and backup the file!
Then search for
<descriptor>
-Tag withlabel="Flash"
.Paste the inside the
<descriptor>
-Tag, maybe afterthe following line
Save file and start FB.
我遇到了同样的问题,就我而言,是 Flash Player(Mac 平台上的 Flash Player Debugger.app)挂起。尝试退出应用程序(如果它在 Mac 上显示“强制退出”,这是一个好兆头)并重新启动它。
I had the same problem, in my case it was the Flash Player (Flash Player Debugger.app on a Mac platform) hanging. Try quitting from the app (if it shows a Force Quit on a Mac it's a good sign) and restarting it.
我们在 FlashBuilder 4.5 中也遇到过这个问题。所提出的解决方案均无效。我们花了 5 个小时来尝试解决这个问题,甚至重新安装 Flash Builder 也无济于事。这非常奇怪,因为我们的项目完美地在另一台机器上运行,而它是从两台机器上的同一存储库从头开始检出的。
终于找到了解决方案:转到
Users//AppData/Roaming/Macromedia/Flash Player/Logs
编辑 mm.cfg 文件(它是 FlashPlayer 的调试设置文件...)
应该只有两行:
我们确实有类似的内容,它完全阻止 FlashPlayer 调试/运行 AIR 应用程序。
flashfirebug 是一个针对 Flash 的 Firefox 调试器...
删除这两行,您的应用程序将重新启动。
We have had this problem as well with FlashBuilder 4.5. None of the proposed solution were working. We loose 5 hours to try to solve this, even reinstalling Flash Builder did nothing. That was perfectly strange, as our project perfectly ran on another machine while it was checked out from scratch from same repository on both machines.
Finally got the solution : Go to
Users/<yourPCuserName>/AppData/Roaming/Macromedia/Flash Player/Logs
edit the mm.cfg file (it is the debugging setup file for FlashPlayer...)
there should only have two lines :
We did have something like this in it, that was completely blocking FlashPlayer in debugging / run an AIR App.
flashfirebug is a Firefox debugger for Flash...
Remove those 2 lines, your apps will start again.