简体   繁体   English

Eclipse不会在我的GWT应用程序中的断点处停止

[英]Eclipse is not stopping at breakpoint in my GWT application

I'm trying to debug a GWT application in eclipse. 我正在尝试在eclipse中调试GWT应用程序。 I click on the Debug->Web Application, and eclipse gives me a URL for development mode. 我点击Debug-> Web Application,eclipse给我一个开发模式的URL。 Once I paste that into Firefox, where I have the GWT extension installed, eclipse spends many minutes compiling the application. 一旦我将其粘贴到Firefox中,我安装了GWT扩展,eclipse花费很多时间编译应用程序。 However when the website loads, and I perform actions that should trigger a breakpoint, I don't seem to hit the breakpoint. 但是当网站加载,并且我执行应该触发断点的操作时,我似乎没有达到断点。 Any ideas what could be causing this? 可能导致这种情况的任何想法?

Thanks. 谢谢。

Basically the problem isn't with the Eclipse or GWT. 基本上问题不在于Eclipse或GWT。 The problem may be with the JDK . 问题可能出在JDK上。

The following links can just be the solution you may be searching for : 以下链接可以是您可能正在搜索的解决方案:

It seems that you are using web mode instead of development mode. 您似乎使用的是Web模式而不是开发模式。 You did state that compilation takes many minutes. 你确实声明编译需要很多分钟。 Compilation in dev mode does not require so much time, but compilation to JavaScript takes minutes. 在开发模式下编译不需要那么多时间,但编译到JavaScript需要几分钟。 And as you know, you can not debug GWT client side Java code in web mode. 如您所知,您无法在Web模式下调试GWT客户端Java代码。

I just hit the problem where my server was running in debug mode, but the breakpoints were not showing as installed (check mark on the breakpoint icon). 我刚刚遇到了我的服务器在调试模式下运行的问题,但是断点没有显示为已安装(断点图标上的复选标记)。 I found that was because there was already a debug connection to the JVM. 我发现这是因为已经有一个到JVM的调试连接。 When I closed the other debug connection and restarted running the project in development mode, the breakpoints started popping. 当我关闭其他调试连接并重新启动在开发模式下运行项目时,断点开始弹出。

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

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