简体   繁体   English

如何调试Weka?

[英]How to Debug Weka?

I am trying to implement a new filter for Weka. 我正在尝试为Weka实施新的过滤器。 I would like to know, what should i do to be able to debug weka, so that I can see what's wrong with my code, since when I try to run the filter in weka I am getting exceptions. 我想知道,我应该怎么做才能调试weka,以便可以看到我的代码出了什么问题,因为当我尝试在weka中运行过滤器时,我遇到了异常。 Currently I am using 目前我正在使用

JOptionPane.showMessageDialog(null, ...);

to print the values of variables, to try and find the problem, however I am wasting a lot of time generating jar files, coping them to the correct location, restarting weka etc... etc... 打印变量的值,尝试查找问题,但是我浪费了很多时间来生成jar文件,将它们处理到正确的位置,重新启动weka等...等等...

thanks in advance for your help. 在此先感谢您的帮助。

What's wrong with using any of the usual Java debuggers? 使用任何常用的Java调试器有什么问题? You can run Weka from Eclipse, or you can launch it with the usual debugger attach arguments and then attach to it from Eclipse. 您可以从Eclipse运行Weka,也可以使用常规调试器的附加参数启动它,然后从Eclipse附加到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM