Posts Tagged 'Remote Debug'

How to debug a GWT Application with gwt-maven-plugin in Eclipse

If you are not using Eclipse and gwt-maven-plugin, please skip this post.

The following shows you how to configure Eclipse to remote debug a GWT application.

 

1. First step: Execute gwt:debug at the the command-line in the project directory

When you run gwt:debug, gwt-maven-plugin enables the remote debug mode at port 8000 (normally)

Here is what you see

image

The application stops here and listens for response from a debugger at port 8000.

 

2. Second step: configure Eclipse Debugger

In Eclipse you go to menu Run\Debug Configurations … and create a new launch configuration “Remote Java Application

Enter the host/port value as follows.

image

Now when you click Debug, the application starts running and you can see the logs continuing in the console

 

That’s it !

15 November 2009 at 09:26 - Comments