如何使用DEBUG与Eclipse + GlassFish 3? [英] How use DEBUG with Eclipse + GlassFish 3?

查看:270
本文介绍了如何使用DEBUG与Eclipse + GlassFish 3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个我真的不明白为什么有时候不工作的事情,有时它是这样的。这让我很惊讶!我需要帮助,请。



我在JSF项目中使用了GlassFish(版本glassfish-3.1.2.2)的Eclipse Juno Java EE x86_64,有时我需要调试我的代码,所以我启动Eclipse,在服务器上调试然后设置我的断点。然后我进入我的页面,执行用户在我的项目中执行的操作,当BreakPoints被激活时,没有任何反应,eclipse只是弹出窗口,但没有更多。



而且更奇怪的是,有时这个程序是有效的,最重要的是它没有..
我真的需要知道这里发生了什么。我必须是我的设置或别的东西,但我知道是什么..



我的调试选项卡: / p>



,我可以打赌,问题是调试是指localhost(1)作为服务器,但我没有任何localhost(1),只是localhost,因为你们可以在这里看到:





为什么创建另一个 localhost ?这是为什么我的调试无法正常工作?

解决方案

谁有这个问题,
我遇到这个问题,直到我注意到我正在使用JDK 1.7,所以我将我的JDK更改为1.6。这个建议适用于我,我下载了Eclipse Juno,使用Revo Uninstaller卸载了JDK 1.7(确保Java可以从我的电脑中完全删除,以避免任何复杂的问题),并安装了Glassfish 3.1.2的JDK 1.6,现在它工作正常!地狱啊=]
谢谢你们!


This is a thing that I really don't understand why doesn't work sometimes and sometimes it does. And this is freaking me out! I need help with it, please.

I have Eclipse Juno Java EE x86_64 with GlassFish ( version glassfish-3.1.2.2) in a JSF project, sometimes I need debug my code, so I start Eclipse, Debug on Server then set my break points. Then I go to my page, do the operations that the user would do in my project and when the BreakPoints should be activated, nothing happens, eclipse just pop ups but nothing more.

And the more weird is that sometimes this procedure works and most of all, it don't.. I really need to know what is happening here. I must be my settings or something else, but I know what it is..

My debug tab:

, I could bet that the problem is that the debug is referring to "localhost(1)" as server but I don't have any "localhost(1)", just "localhost", as you guys can see here:

Why is creating another localhost ? This is related why my debug dont works correctly ?

解决方案

For those who are having this issue, I was having this problem, until I noticed I was using JDK 1.7, so I change my JDK to 1.6. This suggestion works for me, I downloaded the Eclipse Juno, uninstalled JDK 1.7 with Revo Uninstaller (to be sure that Java would be fully removed from my computer to avoid any complication with it) and installed JDK 1.6 with Glassfish 3.1.2, and now it works fine! Hell ya! =] Thank you guys!

这篇关于如何使用DEBUG与Eclipse + GlassFish 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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