在Eclipse GWT中调试 [英] Debugging in Eclipse GWT

查看:728
本文介绍了在Eclipse GWT中调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从昨天起,我一直在研究一个现有的GWT项目。我的问题是,我无法在Eclipse中调试。



我已经看到其他人遇到同样的问题:





我也看过一些教程:





I基于这些网站,我们尝试过各种不同的事情,但是似乎都没有。我试过的一些事情:




  • 使用FireFox而不是Google Chrome

  • 使用jdk1.8.0 _72而不是jdk1.7.0_79

  • 在我的Classpath用户条目的顶部放置 gwt-dev-2.7.0.jar (而不是中间的某个地方)

  • 添加以下参数的任意组合: -bindAdres my.ip.adres ; -gen my_path ; -eclipse -eclipse 不是有效的参数btw ..)。



我目前的配置:



主标签:

 项目:
user-testwar
主类:
com.google.gwt.dev.DevMode

参数标签:



pre $ 程序参数:
-logLevel INFO
-port 8888
-war C:\Users\ ... \user-testwar \target\UserTestWar
-superDevMode
-remoteUI$ {gwt_remote_ui_server_port}:$ {unique_id}
-codeServerPort 9997
my.package.gwt.udf.viewer。 TestWarProject
VM参数:
-Xmx512m

Classpath-tab:

 引导条目:
JRE系统库[JavaSE-1.6]
用户条目:
gwt-dev-2.7.0.jar
java - \user-testwar\src\main\
gwt - \user-testwar\target\generated-sources\
java - \user-jar\src\main\
gwt - \user-jar\target \generated-sources\
> user-testwar(default classpath)
user-testwar
Maven依赖关系
gwt-user.jar
gwt-codeserver.jar
gwt-dev.jar
validation-api-1.0.0.GA-sources.jar
validation-api-1.0.0.GA.jar

所以,任何人都有任何其他想法来解决Eclipse和GWT的调试问题?



编辑:



当我在RemoteService实现类中放置一个断点时,它会破坏它。但是我的widgets / pages在user-jar项目和我的user-testwar项目的主要代码(我想调试的地方)的断点被忽略。

解决方案

如果要在Eclipse中调试GWT应用程序,并且正在使用SDM,则需要使用SBDG插件。



SDBG -plugin可以在这里下载: https://sdbg.github.io/



否则,使用SDM时,您必须在浏览器中调试。



另一个解决方案是使用Intellij Ultimate版本,它提供JavaScript调试器您需要事实的终极版,即GWT方面不属于社区版本。



更新:



从3.0版的GWT Eclipse插件开始, SBDG插件集成到GWT插件中,使GWT应用程序变得非常简单。


Since yesterday I've been working on an existing GWT project. My problem however is that I can't debug in Eclipse. It simply won't break in my breakpoints.

I've seen other people with the same issue:

And I've also looked at some tutorials:

I've tried all kind of different things based on these sites, but none of them seem to work. Some things I've tried:

  • using FireFox instead of Google Chrome
  • using jdk1.8.0_72 instead of jdk1.7.0_79
  • putting gwt-dev-2.7.0.jar at the top of my Classpath User Entries (instead of somewhere in the middle)
  • Adding any combination of the following Arguments: -bindAdres my.ip.adres; -gen my_path; -eclipse (-eclipse isn't a valid argument btw..).

My current configurations:

Main-tab:

Project:
    user-testwar
Main class:
    com.google.gwt.dev.DevMode

Arguments-tab:

Program arguments:
    -logLevel INFO
    -port 8888
    -war C:\Users\...\user-testwar\target\UserTestWar
    -superDevMode
    -remoteUI "${gwt_remote_ui_server_port}:${unique_id}"
    -codeServerPort 9997
    my.package.gwt.udf.viewer.TestWarProject
VM arguments:
    -Xmx512m

Classpath-tab:

Bootstrap Entries:
    JRE System Library [JavaSE-1.6]
User Entries:
    gwt-dev-2.7.0.jar
    java - \user-testwar\src\main\
    gwt - \user-testwar\target\generated-sources\
    java - \user-jar\src\main\
    gwt - \user-jar\target\generated-sources\
  > user-testwar (default classpath)
        user-testwar
        Maven Dependencies
        gwt-user.jar
        gwt-codeserver.jar
        gwt-dev.jar
        validation-api-1.0.0.GA-sources.jar
        validation-api-1.0.0.GA.jar

So, anyone has any (other) ideas to fix the debug issues with Eclipse and GWT?

EDIT:

When I put a breakpoint in our RemoteService implementation class it does break there. But the breakpoints of my widgets / pages in the user-jar project and in the main code of my user-testwar project (where I want to debug) are ignored..

解决方案

If you want to debug your GWT application in Eclipse and you are using SDM, you need the SBDG plugin.

The SDBG-plugin can be downloaded here: https://sdbg.github.io/

Otherwise, when using SDM, you have to debug in the browser.

Another solution is to use Intellij Ultimate edition, which offers a JavaScript debugger. You need the Ultimate edition in Fact that the GWT facet is not part of the Community edition.

Update:

Starting with version 3.0 of the GWT Eclipse plugin, the SBDG-Plugin is integrated into the GWT plugin and makes it quite easy to debug a GWT application.

这篇关于在Eclipse GWT中调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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