简体   繁体   中英

GWT client debugging with Eclipse

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM