Is there some way to print out all the calls of your function to debug recursive programs?
Thanks.
Take a look at the TRACE macro.
TRACE or simple printing instructions.
trace is your friend.