Where do you think is the best place to write & debug snippets of code?

where do you think is the best place to write & debug snippets of code?

for instance, I’m writing a callback to add a button that will create a child ticket and copy all of the custom fields into the new ticket

but every time I change the code I’ve got to clear the mason cache, and restart the httpd and cross my fingers and hope that the new code comes down

I’m thinking of putting that code into a scrip - as an easier place to debug

where would you work on that code ?

thanks
al;

where do you think is the best place to write & debug snippets of code?
for instance, I’m writing a callback to add a button that will create a child ticket and copy all of the custom fields into the new ticket
but every time I change the code I’ve got to clear the mason cache, and restart the httpd and cross my fingers and hope that the new code comes down
I’m thinking of putting that code into a scrip - as an easier place to debug

http://bestpractical.com/docs/rt/latest/RT_Config.html#DevelMode

Debugging a callback in a Scrip context would be… mostly impossible
for me given the radically differing arguments.

-kevin

I’m in Custom Scrip and I can’t get anything to show syslog

I’ve this line in my scrip

syslog("critical", "Scrip: On Create Copy Custom Fields From Parent");

and nothing shows in the syslog

I dn’t get it (so to speak) – what am I doing wrong ?

I’m in Custom Scrip and I can’t get anything to show syslog

I’ve this line in my scrip

syslog(“critical”, “Scrip: On Create Copy Custom Fields From Parent”);

and nothing shows in the syslog

I dn’t get it (so to speak) – what am I doing wrong ?

See http://requesttracker.wikia.com/wiki/GlobalObjects

Jeff Blaine
kickflop.net
PGP/GnuPG Key ID: 0x0C8EDD02