5 cents for today! Debug alternative

Featuring the Dragonfly web framework
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

5 cents for today! Debug alternative

Post 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..
-- (define? (Cornflakes))

Locked