1
votes

I have a GWT application which i need to debug the both client java classes (GWT) and server business classes. I can successfully debug the server side classes where the debug point hits when ever a service request process.

But the problem is in client java classes non of the debug points are hit. What is the reason for it? Do i need to have further steps or tool in order to debug the GWT java classes?

I am using eclipse indigo and glassfish.

1
Did you run it using the Debug menu on eclipse (Debug as web application) ? - gerrytan
yes.Debug is working only for server side java components - Harshana
I've never had to do anything special to enable debug on the client side with Eclipse ... how did you create the project, and how did you run the project in debug mode? - Andy King

1 Answers

2
votes

if you want to debug the code in development mode you have to add the query parameter to the url.

Launching your hostpage may be in Two ways.

If you are launching your host page(appName.html) directly from IDE(eclipse):

Url in browser should be

http://localhost:8080/index.html?gwt.codesvr=127.0.0.1:9997

------^---------|appname.html?--------^---------

1st part is local host

2nd part is your host page

3rd part is debug query parameter.

If you are dispatching the page from servlet:

request.getRequestDispatcher("/appName.html?gwt.codesvr=127.0.0.1:9997")
                                                    .forward(request, response);

And check your debug cofiguration Arguments tab.

-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" 
-startupUrl projectname.html -logLevel INFO 
-codeServerPort 9997 -port 8888 -war
E:\workspace\ProjectName\war com.test.Projectname

Refer the link for the full setup.