Page 1 of 1

5 cents for today! Debug alternative

Posted: Mon Apr 21, 2008 8:53 pm
by newdep
Playing with all the changes in 9.3.x release i ran into read-expr.

very nice for pritty printing code or as a alternative debugger ;-)


here a simple debug/trace 1-liner =>
(read-expr (read-file "gurucode.lsp") (fn(x) (println "==EVAL" x) (eval-string x)) )
or
(read-expr (read-file "maybe.lsp") (fn(x) (println "Eval> " (eval-string x))) )
enjoy..


I prefer the last one..