Trying to manage an inherited Ksh script

Hi
I am trying to get to know a script I have inherited. The original author is no longer available.
Does anyone know if there is a utility to parse a ksh script and generate a report/output which details all the defined functions and their arguments? Maybe even provide a 'call trace' of how the script proceeds - which I confess is what I would *really* like.
I know I can simply read through and generate this but it is not a small piece of code....
any ideas, advice or guidance would be most appreciated

If you can run the script to test, then use "set -x" at the beginning of the script. This will run the script in debug mode and allow you to see what is happening where. To get details of what happens inside each function call, you will have to use "set -x" inside each function.