in reply to debugging AGI script
Some ideas:
1. from command line: agi debug
2. using a shell script: how to debug agi scripts
HTH