On Tuesday, December 20, 2011 12:05:14 PM UTC+1, hallmit wrote:
>
> Hi folks,
>
> I'm experiencing a little bit problem. I would like to launch my
> application in development mode (known also as Hosted mode). My
> current GWT version is 2.3.0.
> For debug reasons, I want to inspect the generated JavaScript in my
> browser but the default format is a non-human readable (obfuscated).
> So, I'm trying to pass the argument -style PRETTY in my launch
> configuration and I got this:
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> Unknown argument: -style
> Google Web Toolkit 2.3.0
>
[...] 

>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
> After searching on GWT repository [1], I figured out that the last
> support for the argument -style was in GWT 1.6 when you were using
> GwtShell. For the new classes, HostedMode and DevMode (class to use
> instead), this argument isn't longer supported. Why?
>

Because DevMode doesn't generate JavaScript *at all* (well, except for a 
the *.nocache.js if you don't have it already, but it doesn't contain 
anything related to your Java code).
The -style argument was there because you could call the Compiler from 
within the DevMode (by the click of a button); and because this has been 
removed, there's no reason to keep the -style argument.

So, it's possible to launch an application in development mode and get
> a pretty Javascript generated (passing style argument to DevMode)?
>
No, because as I said, DevMode doesn't generate any JS at all. Either you 
run in DevMode, and your Java code runs in a JVM, only minimal JS involved 
(but not much things to debug); or you compile to JS (possibly passing 
-style PRETTY) and run in what's known as "production mode" (pure JS, no 
plugin in the browser, no Java involved).

>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/BSI3UuOb6IsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to