I'm beginner and I used Lucene to calculate precision in my program, but results arenot corr开发者_开发问答ect. I want to know if there is any way for tracing the code to know what exactly happen?
There are 2 ways in which you can do this. If you are using lucene stand alone, you could download the source for it and put it in Eclipse and run the project from eclipse and that way step through and debug it.
or
Download Lucene source and put it in an Eclipse project. Start tomcat in remote debug mode and attach eclipse to the running instance. That way you should be able to set break-points where ever you want. This is called JPDA.
精彩评论