Kevin Cruijssen
Kevin Cruijssen

Reputation: 9336

Debugging in Eclipse 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:

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..

Upvotes: 5

Views: 5757

Answers (1)

El Hoss
El Hoss

Reputation: 3832

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.

Upvotes: 8

Related Questions