Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you debug Clojure in NetBeans IDE?

I have a main function but NetBeans needs a main class in order for stepping. How do you guys debug Clojure in NetBeans?

like image 271
unj2 Avatar asked Jul 19 '09 02:07

unj2


1 Answers

Using the enclojure plugin, I am able to setup a breakpoint in the editor, and then start the debugger inside of Netbeans. Java breakpoints within the project are hit, however, the clojure breakpoints fail with errors like:

Not able to submit breakpoint LineBreakpoint defpackage.clj : 8, reason: Line number information is missing in the class file com.yourcompany.defpackage.

Invalid LineBreakpoint defpackage.clj : 8

From looking at the site, it implies that debugging support may not be fully available yet.

like image 69
jsight Avatar answered Oct 22 '22 07:10

jsight