8

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

1 Answer 1

2

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.

5
  • are there other IDEs that support debugging?
    – unj2
    Jul 19, 2009 at 5:38
  • I'm not really sure... I've only played briefly with Clojure. It sounds like JSwat may work.
    – jsight
    Jul 20, 2009 at 5:07
  • Any Java debugger should work with Clojure. Some people have used JSwat successfully. Jul 20, 2009 at 19:02
  • Are there any good free debuggers? And does JSwat have a good stepper?
    – unj2
    Jul 27, 2009 at 18:31
  • slime should have basic support for debugging
    – Alex Ott
    Aug 28, 2009 at 9:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.