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

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

问题描述

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



基于很多谷歌搜索,我在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播放器的调试版本。

当我尝试调试时,tomcat日志显示它正在监听端口8000.netstat显示tcp 0.0.0.0:8000已经建立(它会在监听时调试没有进行中)。在Flash Builder中,在调试的角度来看,它显示它正在使用端口8000.

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



我在这里错过了什么?为了调试应用程序的Java部分,我需要做哪些其他修改?



应用程序是使用Flex SDK 4.5.1A创建的。当我试图导入现有的Maven项目时,它说我需要Flash Player 10.2。我的Flash Player调试器的版本是10.2。我知道当前版本的Flash播放器是11.x.如果我将Flash Player调试器版本升级到11.x(无论当前版本是什么版本),我仍然可以调试Flex / Java应用程序吗?

解决方案

感谢来自RIAStar的意见!我进一步了解如何启用tomcat调试模式。事实证明,我不得不在我的catalina.properties文件中添加以下行。

  tomcat.enable.debug = true 

这条线路是神奇的!


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).

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"

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.

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.

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.

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

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?

解决方案

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

That line did the magic!

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

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