|
|
|
The Model-Driven System Builder
|
|
JeeWiz Architect's Guide
|
|
|
|
Contents >
11. How To
|
|
|
11.7 Debug Templates
To debug a simple template, the obvious approach is to create comments in the output artefact that incorporate values of interest.
For example, to look at an entity's name in a Java file, you could put
This would add a comment to the Java file incorporating the values of interest.
It is usually a lot quicker to do this and re-run than to think deeply!
When you have many levels of calls and overrrides, it can be difficult to follow the flow of logic through
the templates.
In this case, use verbose builds, as described in the trouble-shooting velocity section.
Copyright (c) 2001-2008 New Technology/enterprise Ltd.
| |