MIT
MIT

Reputation: 119

Cannot watch expressions of GWT under debug mode in Eclipse

I am using GWT 2.8 with GWT plugin v.3 and Tomcat 8 in Eclipse.

When I debug the project, breakpoints are working fine, but I can't watch expression, it shows reference error.

Does anyone has the same issue?

I read some related question which says using Google Plugin will be fine, but Google Plugin doesn't support Java 8.

Why it happens and how I solve it?

Upvotes: 0

Views: 502

Answers (1)

mxlse
mxlse

Reputation: 2784

With GWT 2.8 and SuperDev Mode you have to change your debugging habbits a bit. On the server side the things stay the same, but on the client side you have to use the browser for debugging. Use GWT.debugger to add breakpoints in the code or set JS breakpoints in your browsers developer tools.

You also have to use the developer tools to see the expressions. Keep in mind to turn on source maps in your browser preferences. Eventually you have to use the -noincremental parameter in your run configuration to see the java variables.

Upvotes: 1

Related Questions