You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by At...@t-systems.com on 2007/10/17 15:37:18 UTC

Question

Hi,
 
I am VERY interested in writing a Debugger for Velocity!
It could be usefully used in many places (for example the andromda
project)
 
Is it a good idea? Could this be completed?
 
Looking forward to hearing from you.
 
Regards
attila

Re: Question

Posted by Will Glass-Husain <wg...@gmail.com>.
Hi Attila,

Thanks for your interest in putting this together.  There's been a little
discussion about this in the past, check the dev list archives.

Personally, I'd love to see a syntax validator and reference checking tool.
Something users could use to test a page before installing it in a system.
Debugging type functionality (showing reference values as they are set, for
example, or tracing through loops) would be cool as well.

There's a couple of places to start for ideas.

--> Look at the ReferenceInvalidEventHandler, which shows how to collect a
list of all the invalid references in a page
--> Look at the Click framework's error handling system, which shows how to
highlight a syntax error in a Velocity page
--> There are some Eclipse plugins for Velocity which offer basic syntax
checking and autocompletion.

Velocity itself is processed with JavaCC.  Templates are composed of a tree
with Node objects representing structure.  Presumably you could work with
that.  As an internal data structure, it's a little subject to change but is
mostly stable.

Let us know what you find out as you dig into this.

Best, WILL

On 10/17/07, Attila.Bak@t-systems.com <At...@t-systems.com> wrote:
>
> Hi,
>
> I am VERY interested in writing a Debugger for Velocity!
> It could be usefully used in many places (for example the andromda
> project)
>
> Is it a good idea? Could this be completed?
>
> Looking forward to hearing from you.
>
> Regards
> attila
>



-- 
Forio Business Simulations

Will Glass-Husain
wglass@forio.com
www.forio.com