Quantcast

how to debug a grails application without an ide?

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

how to debug a grails application without an ide?

Mauro-4
I'm not using an ide.
How can I debug my application, inserting brak points, etc.?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: how to debug a grails application without an ide?

bdrhoa
I don't think you can. Along time ago I once used a text/command line based debugger for debugging some C code. Don't know if such a thing exists for Java or not.

But why wouldn't you use an IDE? Most of them are free.
---------------------------
www.maf.org/rhoads
www.ontherhoads.org


On Tue, Mar 8, 2011 at 8:41 AM, Mauro <[hidden email]> wrote:
I'm not using an ide.
How can I debug my application, inserting brak points, etc.?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: how to debug a grails application without an ide?

Mauro-4
On 8 March 2011 15:54, Brad Rhoads <[hidden email]> wrote:
> I don't think you can. Along time ago I once used a text/command line based
> debugger for debugging some C code. Don't know if such a thing exists for
> Java or not.
>
> But why wouldn't you use an IDE? Most of them are free.

Netbeans or STS for example?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: how to debug a grails application without an ide?

Roberto Guerra


On Tue, Mar 8, 2011 at 10:10 AM, Mauro <[hidden email]> wrote:
On 8 March 2011 15:54, Brad Rhoads <[hidden email]> wrote:
> I don't think you can. Along time ago I once used a text/command line based
> debugger for debugging some C code. Don't know if such a thing exists for
> Java or not.
>
> But why wouldn't you use an IDE? Most of them are free.

Maybe because IDEs suck! Or maybe because I prefer text editors.

Netbeans or STS for example?

There are some examples on the web on using netbeans and STS for debugging grails app, if you must do so. If I ever have the need to debug a grails app I would only use the IDE for debugging and go back to my text editor for editing.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
"The greatness of a nation and its moral progress can be judged by the way its animals are treated." --Ghandi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: how to debug a grails application without an ide?

Mauro-4
On 8 March 2011 16:42, Roberto Guerra <[hidden email]> wrote:

>
>
> On Tue, Mar 8, 2011 at 10:10 AM, Mauro <[hidden email]> wrote:
>>
>> On 8 March 2011 15:54, Brad Rhoads <[hidden email]> wrote:
>> > I don't think you can. Along time ago I once used a text/command line
>> > based
>> > debugger for debugging some C code. Don't know if such a thing exists
>> > for
>> > Java or not.
>> >
>> > But why wouldn't you use an IDE? Most of them are free.
>
> Maybe because IDEs suck! Or maybe because I prefer text editors.

Yes I don't like ides too but it seems that is the only way for
debugging a grails app.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: how to debug a grails application without an ide?

Ian Roberts
On 08/03/2011 16:56, Mauro wrote:
> Yes I don't like ides too but it seems that is the only way for
> debugging a grails app.

There is always jdb (the gdb-alike command line Java debugger that comes
with the JDK) but I don't know how well that plays with Groovy code.
You're probably better off with a few well-placed println or log.debug
statements.  I am an IDE user about 60-70% of the time and I still do
most of my debugging using logging - I rarely, if ever, use "breakpoint
and step through" style debugging.

Ian

--
Ian Roberts               | Department of Computer Science
[hidden email]  | University of Sheffield, UK

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: how to debug a grails application without an ide?

burtbeckwith
In reply to this post by Mauro-4
You could use jdb:

http://download.oracle.com/javase/6/docs/technotes/tools/windows/jdb.html

Burt

> On 8 March 2011 16:42, Roberto Guerra <[hidden email]> wrote:
> >
> >
> > On Tue, Mar 8, 2011 at 10:10 AM, Mauro <[hidden email]> wrote:
> >>
> >> On 8 March 2011 15:54, Brad Rhoads <[hidden email]> wrote:
> >> > I don't think you can. Along time ago I once used a text/command line
> >> > based
> >> > debugger for debugging some C code. Don't know if such a thing exists
> >> > for
> >> > Java or not.
> >> >
> >> > But why wouldn't you use an IDE? Most of them are free.
> >
> > Maybe because IDEs suck! Or maybe because I prefer text editors.
>
> Yes I don't like ides too but it seems that is the only way for
> debugging a grails app.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: how to debug a grails application without an ide?

Wolfgang Schell
You can even script your debugging using Groovy with YouDebug: http://youdebug.kenai.com/.
Basically, it is a Groovy wrapper around the Java Debug Interface (JDI) created by Kohsuke Kawaguchi, the inventor of Hudson/Jenkins. This is great e.g. if you have to wait for certain conditions, which can be scripted in Groovy.

HTH,

Wolfgang
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: how to debug a grails application without an ide?

Mauro-4
On 8 March 2011 19:48, Wolfgang Schell <[hidden email]> wrote:
> You can even script your debugging using Groovy with YouDebug:
> http://youdebug.kenai.com/.
> Basically, it is a Groovy wrapper around the Java Debug Interface (JDI)
> created by Kohsuke Kawaguchi, the inventor of Hudson/Jenkins. This is great
> e.g. if you have to wait for certain conditions, which can be scripted in
> Groovy.
>

I install STS eventually.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...