Re: [rt-users] Debugging templates and scrips

2010-08-06 Thread Gerard FENELON

Thanks Ken

that is what I do and what I call a Stone Age method ;-)

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.

Gerard


On -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 ger...@eve-team.com 
mailto:ger...@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

[rt-users] Debugging templates and scrips

2010-08-05 Thread Gerard FENELON

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


Re: [rt-users] Debugging templates and scrips

2010-08-05 Thread Kenneth Crocker
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 ger...@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


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