如何在NetBeans IDE中调试Clojure?

时间:2020-12-07 22:50:36

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

我有一个主要功能,但NetBeans需要一个主类才能进行步进。你们如何调试NetBeans中的Clojure?

1 个解决方案

#1


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:

使用enclojure插件,我能够在编辑器中设置断点,然后启动Netbeans内部的调试器。项目中的Java断点被命中,然而,clojure断点失败,出现如下错误:

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

无法提交断点LineBreakpoint defpackage.clj:8,原因:类文件com.yourcompany.defpackage中缺少行号信息。

Invalid LineBreakpoint defpackage.clj : 8

无效的LineBreakpoint defpackage.clj:8

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

从查看该站点来看,这意味着调试支持可能尚未完全可用。

#1


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:

使用enclojure插件,我能够在编辑器中设置断点,然后启动Netbeans内部的调试器。项目中的Java断点被命中,然而,clojure断点失败,出现如下错误:

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

无法提交断点LineBreakpoint defpackage.clj:8,原因:类文件com.yourcompany.defpackage中缺少行号信息。

Invalid LineBreakpoint defpackage.clj : 8

无效的LineBreakpoint defpackage.clj:8

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

从查看该站点来看,这意味着调试支持可能尚未完全可用。