debugging grails

debugging grails

Hi,

Sorry for this (maybe) naive question.How do you guys debug a Grails application within Eclipse?Do you attach to a remote VM? Or is there a simpler way to debug the Grails framework itself?Can you give me some suggestions?

Re: debugging grails

On 13/03/06, Harm de Laat <[hidden email]> wrote:
> Hi,
>
> Sorry for this (maybe) naive question.
> How do you guys debug a Grails application within Eclipse?
I tend to mainly use IntelliJ IDEA, but I have debugged grails in
Ecilpse using the Eclipse WebTools. Simply by creating an app and then
pointing the inbuilt tomcat server's context path to the "tmp/war"
directory of the app I want to debug.

You then just run the server in debug mode

> Do you attach to a remote VM? Or is there a simpler way to debug the Grails
> framework itself?
Not at the moment no.

Re: debugging grails

> Hi,
>
> Sorry for this (maybe) naive question.
> How do you guys debug a Grails application within Eclipse?
> Do you attach to a remote VM? Or is there a simpler way to debug the Grails
> framework itself?
> Can you give me some suggestions?
>
> Regards,
>
> Harm.
>
>

Re: debugging grails

On 13/03/06, Steven Devijver <[hidden email]> wrote:
> I think it makes sense to add a special target to the ant file that
> starts Jetty in debug mode.
Yes this is possible too to support remote debugging. Something else
on the todo list

Re: debugging grails

On 13/03/06, Harm de Laat <[hidden email]> wrote:> Hi,>> Sorry for this (maybe) naive question.> How do you guys debug a Grails application within Eclipse?
I tend to mainly use IntelliJ IDEA, but I have debugged grails inEcilpse using the Eclipse WebTools. Simply by creating an app and thenpointing the inbuilt tomcat server's context path to the "tmp/war"
directory of the app I want to debug.

Okay, how exactly do you do this? I checked out grails from CVS into my Workspace.In my workspace I created an (grails) application using the command line.

Re: debugging grails

>
>
> On 3/13/06, Graeme Rocher <[hidden email]> wrote:
> > On 13/03/06, Harm de Laat <[hidden email]> wrote:
> > > Hi,
> > >
> > > Sorry for this (maybe) naive question.
> > > How do you guys debug a Grails application within Eclipse?
> > I tend to mainly use IntelliJ IDEA, but I have debugged grails in
> > Ecilpse using the Eclipse WebTools. Simply by creating an app and then
> > pointing the inbuilt tomcat server's context path to the "tmp/war"
> > directory of the app I want to debug.
>
> Okay, how exactly do you do this?
> I checked out grails from CVS into my Workspace.
> In my workspace I created an (grails) application using the command line.
>
> I cannot find the tmp/war directory you are talking about....
>
> Any suggestions?

You need to package the application first by typing "grails dev
package" this will create the tmp dir. Sorry there aren't many docs on
this at the moment!