Yes. With -noserver, you have to have a separate server running (Sling
in this case) which can serve the static content including the host
HTML page, any CSS or images, and the nocache.js file (possibly
others, but I think that's it).

So you generally have to do one full build and deployment to Sling in
order to debug. But when running in hosted mode with -noserver, the
GWT code will be read from your source files, not the compiled
JavaScript.

You can also use Sling's FileSystem ResourceProvider support to avoid
having to deploy anything into Sling, but you still have to run a GWT
build in order to get the nocache.js file.

HTH,
Justin

On Sun, Sep 12, 2010 at 2:43 PM, Tom Barber <[email protected]> wrote:
> Yeah but surely the bundle has to be injected into the sling server, if you 
> run hosted in maven with mvn gwt:debug that wouldn't do it. I'm probably just 
> not 'getting' the -noserver option.
>
> Thanks
>
> Tom
>
>
> On 12 Sep 2010, at 19:25, Justin Edelson wrote:
>
>> I usually use the Eclipse GWT plugin for debugging. But I don't see a reason 
>> this won't work with just the Maven plugin.
>>
>> On Sep 12, 2010, at 2:18 PM, Tom Barber <[email protected]> wrote:
>>
>>> Okay thanks Justin, I'll delve further.
>>>
>>> Tom
>>>
>>> On 12 Sep 2010, at 19:01, Justin Edelson wrote:
>>>
>>>> You mean hosted mode?
>>>>
>>>> It is definitely possible to debug both the client and server portions
>>>> of a Sling/GWT application.
>>>>
>>>> Justin
>>>>
>>>> On 9/11/10 8:18 PM, Tom Barber wrote:
>>>>> Okay then, GWT makes me much happier as a person than hacking around with 
>>>>> Jscript/JQuery, one random question... is it possible to coerce GWT to 
>>>>> run in debug mode when you're working with OSGI plugins? I can't really 
>>>>> imagine how you would do it.
>>>>>
>>>>> Thanks
>>>>>
>>>>> Tom
>>>>
>>>
>
>

Reply via email to