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 overflowYou 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: programming, scheme
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home