简体   繁体   English

Eclipse juno不会在tomcat中运行的GWT服务器端代码中达到断点

[英]Eclipse juno won't hit breakpoints in GWT server side code running in tomcat

I'm running Vogella's tutorial on GWT ( http://www.vogella.com/articles/GWT/article.html ) and my Eclipse Juno installation on OSX is not able to hit a breakpoint in the server-side service module implementation java class MyUserServiceImpl. 我正在GWT( http://www.vogella.com/articles/GWT/article.html )上运行Vogella的教程,并且OSX上的Eclipse Juno安装无法达到服务器端服务模块实现java中的断点类MyUserServiceImpl。

I've linked an external (not workspace) installation of Tomcat 7 with my Eclipse, from which I am able to successfully start and stop the server. 我已将Tomcat 7的外部(而非工作空间)安装与Eclipse链接在一起,从中可以成功启动和停止服务器。 I can see during server startup that the port 8000 is setup for attachment (by adding to the VM args: -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n). 我可以看到在服务器启动过程中已为附件设置了端口8000(通过添加到VM args:-Xdebug -Xrunjdwp:transport = dt_socket,address = 8000,server = y,suspend = n)。 I appear to be able to attach to port 8000 using Remote Debugging on the localhost url in Eclipse. 我似乎能够使用Eclipse中localhost URL上的Remote Debug附加到端口8000。

Any suggestions on why I'm not able to hit the breakpoint? 关于为什么我无法达到断点的任何建议?

Turns out that instead of debugging it as a Remote Java Application, debugging it as a Web Application works. 事实证明,与其将其作为远程Java应用程序进行调试,还可以将其作为Web应用程序进行调试。

Still need to ensure that its in fact getting deployed to the correct tomcat installation directory. 仍然需要确保其实际上已部署到正确的tomcat安装目录中。 I've unchecked "Run built-in server" in the Debug Configuration for the Web Application type project. 我没有在“ Web应用程序类型”项目的“调试配置”中选中“运行内置服务器”。 I've also ensured that eclipse has taken control of the tomcat installation identified in preferences. 我还确保eclipse控制了首选项中标识的tomcat安装。 Manually setting the directory was not allowed as I had identified it separately in eclipse as THE tomcat installation dir. 不允许手动设置目录,因为我在eclipse中将其单独标识为the tomcat安装目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM