Eclipse debugger breakpoint flakiness w/Glassfish

孤人 提交于 2019-12-22 05:21:53

问题


in Eclipse Indigo with Glassfish 3.1.2 on Linux/Ubuntu. JDK 1.6.0_32.

Update same results on Glassfish 3.1.2.2 and Eclipse Juno w/latest Eclipse Glassfish plugin.

Eclipse debugger stops on breakpoints, but does not synchronize the 'debug' tab to the current thread/location, and does not show the cursor at the current line. If I manually expand the tabs for each thread, I can figure out which thread is stopped and what line. If I click on that I can then show the pointer on the current line. Once I step over/into (F5/F6), though, the current-line cursor disappears again and I have to do it all over.

Debugger does work fine with JUnit and Java SE apps. Also the very first time I launch Eclipse and Glassfish, everything works. If I restart Glassfish though, the debugger flakes out until I restart Eclipse again.

Any one seen this and had found a fix?


回答1:


I struggle with this error described by wrschneider99 for 2 days. I thought that I do not find solution. I noticed that when i "open launch configuration" for my glassfish server then error message "No server selected" is shown. I found defects for this Defect1, and Defect2. Following suggestions I installed glassfish server plugin by putting in eclipse install new software link

http://dlc.sun.com.edgesuite.net/glassfish/eclipse/juno/

After that problem with "No server selected" disappear and debugging problem was fixed too! I used linux x64 and eclipse indigo. It look that in eclipse marketplace glassfish plugin is not up to date.




回答2:


I know this post is old. But, upgrading to Eclipse Kepler and Glassfish 4 seems to have solved the problem for me.



来源:https://stackoverflow.com/questions/13056775/eclipse-debugger-breakpoint-flakiness-w-glassfish

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!