Debugging templates and scrips

Hi

does anyone have tips on debugging templates and scrips ?
I am still using the Stone Age method of adding calls to RT::Logger,
and I find this method a bit slow.
In my experience, templates can be a special pain because they can die
silently.

Thanks
Gerard

Gerard,

I would add some code in strategic places that create a line in the log
file. This would allow you to see how far the template went before dying.

Kenn
LBNLOn Thu, Aug 5, 2010 at 10:52 AM, Gerard FENELON gerard@eve-team.com wrote:

Hi

does anyone have tips on debugging templates and scrips ?
I am still using the Stone Age method of adding calls to RT::Logger,
and I find this method a bit slow.
In my experience, templates can be a special pain because they can die
silently.

Thanks
Gerard

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Thanks Ken

that is what I do and what I call a “Stone Age method” :wink:

Actually the first thing I do is copy/paste into vi and go chasing after
misplaced curly brackets
which I have found to be the usual suspect for silent death.

GerardOn -28163-01–10 20:59, Kenneth Crocker wrote:

Gerard,

I would add some code in strategic places that create a line in the
log file. This would allow you to see how far the template went before
dying.

Kenn
LBNL

On Thu, Aug 5, 2010 at 10:52 AM, Gerard FENELON <gerard@eve-team.com mailto:gerard@eve-team.com> wrote:

Hi

does anyone have tips on debugging templates and scrips ?
I am still using the Stone Age method of adding calls to RT::Logger,
and I find this method a bit slow.
In my experience, templates can be a special pain because they can
die silently.

Thanks
Gerard