Thursday, May 23, 2013

Re: Offline debugging my gwt app

Yves, I would try SuperDev mode and debug using Chrome Dev Tools and the source maps produced by the super dev mode code server.  You don't need any special changes to your project, you just need to create a way to launch the super dev mode code server.  This is documented at gwtproject.org.here.  Here is a blog post I wrote with detailed instructions.

Ed


On Monday, May 20, 2013 11:46:08 AM UTC-7, yves wrote:
Hello All,

I need to debug my gwt app. The problem is that I need to debug it OFFLINE.
After a tour on the net, I didn't found an answer.

Thus here is the scenario.

My GWT version is 2.4.0

Debugging the code is ok.
Running in production offline is ok, using a cache manifest.

But I can't do both : debugging offline.

To avoid any config difference, I use exactly the same tomcat server deployment to run in production or in debug mode (thus with the debug option -noserver).
The cache manifest is built in runtime by a dedicated service whose response depends on the current permutation.

When online, the manifest is always requested in debug and in production mode (confirmed by tracing). (a subsidiary question is : why in production the manifest is called twice and in debug it is called once ?).

Then I stopped tomcat.
=> In production offline the gwt app is running correctly.
=> In debug offline, nothing is displayed : the browser has loaded the app html file from its cache (confirmed by displaying the page source code), but the browser remains empty, the gwt app is not running.

It seems that when offline, the google dev plugin doesn't communicate correctly with the IDE as it even doesn't realize when the development mode is stopped in the IDE (the black overlay with the message "Plugin failed to connect to Development Mode server at localhost:9997" is no displayed). May be the plugin is not started when offline ?

In order to help me test my app when offline, does anybody knows why the app is not running in debug offline mode and how to make it run ?

Thanks a lot !
Yves

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment