Thursday, October 24, 2013

Re: Help with Source Map



On Thursday, October 24, 2013 7:36:00 AM UTC+2, Axel R wrote:
Hi,

I use GWT 2.5.1
I have at least theses configurations : 
<add-linker name="xsiframe" />
<set-configuration-property   name='xsiframe.failIfScriptTag'    value="false" />
<set-property name="compiler.useSourceMaps"  value="true" /> -->

- I would like to know if Source Map should work with the online application (the website in production) ?
Because, I succeed to see the java files in local developement mode...but I didn t succeed to see the java files with my website online. (and I have used the same *.gwt.xml file)

AFAICT, you have "deploy" them to make them reachable via HTTP. It can be as easy as moving the files after the GWT config, or making a servlet loading the files from the -deploy dir (defaults to WEB-INF/deploy IIRC)
You have to deploy your source code too IIRC, including the code generated by GWT generators.
 
- Is it mandatory to use Super Dev Mode to have Source Map working in local dev ? In other terms, is it mandatory to set :
<set-configuration-property name="devModeRedirectEnabled" value="true" /> 
Because, in local dev, if I set the previous line with: value="false", then I cannot see the source map.

It should work; devModeRedirectHook should be totally distinct from whether and how source maps are generated.
But it'd only work if you "deploy" the files. I don't think DevMode does anything special re. source maps, only SuperDevMode treats them specifically to automatically expose them through HTTP (because SDM is mush less useful without source maps)

--
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/groups/opt_out.

No comments:

Post a Comment