5 cents for today! Debug alternative

Started by newdep, April 21, 2008, 01:53:36 PM

Previous topic - Next topic

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 =>


Quote(read-expr (read-file "gurucode.lsp") (fn(x) (println "==EVAL" x) (eval-string x))  )

or
Quote(read-expr (read-file "maybe.lsp") (fn(x) (println "Eval> " (eval-string x))) )


enjoy..





I prefer the last one..
-- (define? (Cornflakes))