从Eclipse快速调试Flex / Java Web应用程序? [英] Quickly debug Flex/Java web application from Eclipse?

查看:98
本文介绍了从Eclipse快速调试Flex / Java Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Maven作为构建工具的Flex / Java Web应用程序。目前,如果我想调试整个应用程序,我使用Maven创建WAR文件,并使用货物插件部署WAR文件并启动应用程序服务器。然后我启动一个Eclipse(使用Flash Builder 4)FlexWeb应用程序调试配置并开始调试。



这一切都很好,但我正在寻找一种方式使之更快。我想要编辑我的Flex代码,并立即启动我的Flash Builder调试配置,而不必通过Maven。



目前,我的Flex客户端模块的输出文件夹只是项目的bin文件夹。在完美的世界中,我将配置Flash Builder,将其新建的SWF文件(和资产)直接放入正在运行的应用服务器中。假设这对远程应用服务器是不可能的,而且我从Cargo运行的本地应用服务器也是不可能的,也许我可以使用另一种方法来从Eclipse运行本地的应用服务器?



我不太了解Eclipse或Flash Builder了解该怎么办...帮助!

解决方案

我们是使用Flash Builder,但这也适用于eclipse插件。在项目的Flex构建路径配置中,将输出文件夹设置为目标文件夹,让您的Web服务器接收正在构建的SWF。将输出文件夹URL设置为指向启动SWF的上下文,您应该很好。示例:




输出文件夹:c:\java\tomcat\webapps\myapp

输出文件夹URL: http:// localhost:8080 / myapp



我们还发现,使用IE进行测试使事情变得更简单,因为Firefox或Chrome将缓存的SWF的趣味性降低。


I have a Flex/Java web application that uses Maven as a build tool. Currently, if I want to debug the entire application I use Maven to create the WAR file and use the cargo plugin to deploy the WAR file and start up the app server. I then launch an Eclipse (with Flash Builder 4) Flex "Web Application" debug configuration and start debugging.

It all works very well, but I am looking for a way to make this faster. I'd like to be able to edit my Flex code and immediately launch my Flash Builder debug configuration without going through Maven.

Currently the output folder for my Flex client module is just the "bin" folder of the project. In a perfect world, I'd configure Flash Builder to put it's newly minted SWF file (and assets) directly into the app server I am running. Assuming this is impossible with remote app servers, and also impossible with the local app servers I run from Cargo, perhaps I can use another approach to running a local app server from Eclipse?

I don't know enough about Eclipse or Flash Builder to know what to do...HELP!

解决方案

We are using Flash Builder but this should work for the eclipse plugin too. In the Flex Build Path configuration for the project set the output folder to the target folder where you have your web server pick up the SWF you are building. Set the Output folder URL to point to the context that launches the SWF and you should be good to go. Example:


Output folder: c:\java\tomcat\webapps\myapp
Output folder URL: http://localhost:8080/myapp

As an aside we have also found that using IE to test in makes things simpler as it tends to have less funnies with cached SWFs then Firefox or Chrome.

这篇关于从Eclipse快速调试Flex / Java Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆