Flash Builder 4.7 中 Flex/Java 应用程序的远程调试 Java 部分 [英] Remote Debug Java part of the Flex/Java application within Flash Builder 4.7

查看:30
本文介绍了Flash Builder 4.7 中 Flex/Java 应用程序的远程调试 Java 部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Flex/Java 应用程序.构建是使用 Maven 完成的.我的 IDE 是 Fl​​ash Builder 4.7.服务器是一个 tomcat 包装器 (vFabric tcserver).

I have a Flex/Java application. The build is done using Maven. My IDE is Flash Builder 4.7. The server is a tomcat wrapper (vFabric tcserver).

基于许多谷歌搜索,我在我的 wrapper.conf 中添加了以下几行.

Based upon the many google searches, I added the following lines in my wrapper.conf.

wrapper.java.additional.11="-Xdebug" 
wrapper.java.additional.12="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

在我的 Flash Builder 中,我设置了一个调试配置以使用主机 localhost 上的端口 8000,并且连接类型是 Socket Attach.我正在使用 Internet Explorer 进行调试,并且我确实拥有 Flash 播放器的调试版本,正如某些 Flash 播放器调试器网站所确认的那样.

In my Flash Builder, I have set up a debug configuration to use port 8000 on host localhost and the connection type is Socket Attach. I am using Internet Explorer to do the debugging and I DO have the debug version of the Flash player as confirmed by some Flash player debugger web site.

当我尝试调试时,tomcat 日志显示它正在侦听端口 8000.netstat 显示 tcp 0.0.0.0:8000 已建立(当调试未进行时它会侦听).在 Flash Builder 中,在调试透视图中,它显示它正在使用端口 8000.

When I try to debug, the tomcat log shows that it is listening on port 8000. netstat shows that tcp 0.0.0.0:8000 is established (it would be listening when the debug is not in progress). Within Flash Builder, in the debug perspective, it shows that it is using port 8000.

我遇到的问题是,我在应用程序的 Flex 部分和 Java 部分都设置了断点.Flex 中的断点直接进入调试模式,没有任何问题.但是,Java 部分中的断点根本没有中断.

The problem that I am having is, I have set breakpoints in both the Flex part and the Java part of the application. The breakpoints in the Flex get right into the Debug mode without any problem. However, the breakpoints in the Java part don't break at all.

我在这里错过了什么?为了调试应用程序的 Java 部分,我还需要进行任何其他修改吗?

What am I missing here? Any other modifications that I need to make in order to debug the Java part of the application?

该应用程序是使用 Flex SDK 4.5.1A 创建的.当我尝试导入现有的 maven 项目时,它说我需要 Flash Player 10.2.我的 Flash Player 调试器的版本是 10.2.我了解 Flash 播放器的当前版本是 11.x.如果我将 Flash 播放器调试器版本升级到 11.x(无论当前版本是什么),我还能调试 Flex/Java 应用程序吗?

The application was created using Flex SDK 4.5.1A. When I tried to import the existing maven project, it said that I needed Flash Player 10.2. The version of my Flash Player debugger is 10.2. I understand that the current version of Flash player is 11.x. If I were to upgrade my Flash player debugger version to 11.x (whatever the current version is), would I still be able to debug the Flex/Java application?

推荐答案

感谢 RIAStar 的评论!我进一步研究了如何启用 tomcat 调试模式.结果我不得不在我的 catalina.properties 文件中添加以下行.

Thanks to the comments from RIAStar! I looked further into how to enable the tomcat debug mode. It turned out that I had to add the following line in my catalina.properties file.

tomcat.enable.debug=true

那条线很神奇!

这篇关于Flash Builder 4.7 中 Flex/Java 应用程序的远程调试 Java 部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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