Monday, February 23, 2009

debug-set!

If you wrote a scheme procedure which will recursive too much and exhaust all you stack, guile will print a horrible error message like below:
ERROR: Stack overflow
You might fix your algorithm and make the procedure tail-recursive to get rid of the compliant, or either, for debugging purpose, increase the stack size:
(debug-set! stack 200000)

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home