Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

RE: [groovy-user] debugging state dumping question

Alexander Veit

2008-08-22

Replies: Find Java Web Hosting

Author LoginPost Reply
> Raoul Duke wrote:
> > you could also provide a logging object in the binding (e.g. an
> > org.slf4j.Logger) to examine the script's state during execution.
>
> that sounds good, although i don't know that i fully grok
> what you mean.
>
> ideally the scripts would not be re-written to do extra logging in the
> Groovy code manually, it would be more of an invasive snapshot
> logging, or it would be Groovy logging whenever a variable's value is
> updated.
>
> is the latter what you mean,

Unfortunately not. You would have to rewrite the scripts if with my
proposal.

> or how might one do the latter?

As far as I know one cannot intercept Groovy's variable assignment.

Perhaps there is a way to instrument the script at compile time, but I'm not
sure...



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

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.