5
votes

I use google plugin for eclipse to deploy my GWT application, it works good until now, the deploy action first compiles my GWT project with "obfuscated" output style, now i want it change to "Pretty" because i have to debug the client side on the fly, i just can't see the obfuscated stack.

Thanks.

2

2 Answers

12
votes

Compiler level is part of the GWT compiler options :

-style Script output style: OBF[USCATED], PRETTY, or DETAILED (defaults to OBF)

If you're using Ant :

modify your build.xml file :

<arg value="-style"/>
<arg value="pretty"/>

If you're using Maven :

modify your pom.xml file :

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.4.0</version>
<executions>
    <execution>
        <goals>
            <goal>compile</goal>
        </goals>
        </execution>
</executions>
<configuration>
    <style>PRETTY</style>
    <!-- OTHER STUFF -->
</configuration>
</plugin>
3
votes

The solution is simple, first open "GWT compile" dialog, select Detailed or Pretty, click apply, close the dialog, then it will be deployed with Detailed or Pretty style.