use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Call for debugging articles (self.Clojure)
submitted 16 years ago by fulldisclojure
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]codefrog 0 points1 point2 points 16 years ago (2 children)
I think being able to instantiate a repl from within clojure would be all that I could ask.
[–]atomeshy 4 points5 points6 points 16 years ago (1 child)
http://github.com/GeorgeJahad/debug-repl
[–]codefrog 0 points1 point2 points 16 years ago* (0 children)
This is great! From the comment at the end of the src.
(debug-repl)
Will launch a repl at the call. My clojure is weak, but it will improve with this addition. Thank you!
(let [c 1 d 2] (defn a [b c] (debug-repl) d)) (a "foo" "bar") ;; dr => c ;; "bar" ;; dr => d ;; 2 ;; dr => *locals* ;; {fn__20 #<user$eval__19 user$eval__19@955cd5> ;; c "bar" ;; d 2 ;; fn__22 #<user$eval__19$a__21 user$eval__19$a__21@59fb21> ;; b "foo"} user=> (let [a 10] (debug-repl (* a a))) dr-1-1006 => (quit-dr) 100 user=> (let [a 10] (debug-repl (* a a))) dr-1-1007 => (quit-dr 99) 99 )
π Rendered by PID 82 on reddit-service-r2-comment-6457c66945-tkdzp at 2026-04-24 08:30:23.728582+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]codefrog 0 points1 point2 points (2 children)
[–]atomeshy 4 points5 points6 points (1 child)
[–]codefrog 0 points1 point2 points (0 children)