Friday, June 6, 2014

Re: Debugging in production mode



On Friday, June 6, 2014 4:47:44 PM UTC+2, Grace Yeung wrote:
I tried SuperDevMode and I can access URL: http://localhost:9876/
 
But I am geting this:
Can't find any GWT Modules on this page.

Are you clicking the "Dev Mode On" button on that page?

Carefully read what's written: put those links in your bookmarks, and click them when you're on your application in prod mode.
You actually almost never need to open localhost:9876 (there are build logs there too though, easier to read/search than in your console)
 
 
I already updated my .gwt.xml
with the following

<add-linker name="xsiframe" />

<set-configuration-property name="devModeRedirectEnabled" value="true"/>

This is no longer needed starting with GWT 2.6.0.
 

<!-- enable source maps -->

<set-property name="compiler.useSourceMaps" value="true" />


This is not strictly needed either. SuperDevMode will set it; so only set it to true if you intend to those source maps (e.g. deploy them with your app in production, like we did on http://www.gwtproject.org for instance)
 

and recompiled my application.

And deployed that version of the application in a web server and opened in in your browser? That's where you click the "Dev Mode On" bookmark.
You only need to do it once to get the devmode "hook" into the .nocache.js. 

--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment