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

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

问题描述

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

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.

一切都很好,但我正在寻找一种方法来加快速度.我希望能够在不通过 Maven 的情况下编辑我的 Flex 代码并立即启动我的 Flash Builder 调试配置.

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.

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

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?

我对 Eclipse 或 Flash Builder 的了解不够,不知道该做什么...帮助!

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

推荐答案

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

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:


输出文件夹:c:\java\tomcat\webapps\myapp
输出文件夹 URL:http://localhost:8080/myapp

顺便说一句,我们还发现使用 IE 进行测试可以使事情变得更简单,因为与 Firefox 或 Chrome 相比,使用缓存的 SWF 往往更有趣.

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天全站免登陆