clojure debugging startup (jdb?)

130 Views Asked by At

I want to understand the startup of Clojure and the execution of a single form at the REPL of Cloujure.

Often, when possible, I use a debugger to step through the code to watch what is happening.

I think that I want to use jdb. It keeps failing with "could not find or load main class clojure", when I run "jdb clojure" and "stop in clojure.main" in ~/projects/clojure (where I've cloned the clojure repo).

Maybe I've got some path wrong, or I'm stopping on the wrong thing (maybe I need to stop on a name-mangled function?), or I've built clojure.jar without the pre-requisite debugging info, etc. The error message seems to say that I'm not starting things correctly.

I need a recipe for how to do this with clojure (.jar).

Assume that I know nothing about the java ecosystem.

0

There are 0 best solutions below