Reputation: 7647
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.
Upvotes: 1
Views: 543
Reputation: 121998
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.
Upvotes: 2