简体   繁体   English

Java Lucene中的跟踪代码

[英]Tracing Code in Java Lucene

I'm beginner and I used Lucene to calculate precision in my program, but results arenot correct. 我是新手,我使用Lucene计算程序中的精度,但是结果不正确。 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. 如果单独使用lucene,则可以下载它的源代码并将其放在Eclipse中,然后从eclipse运行项目,然后逐步调试它。

or 要么

Download Lucene source and put it in an Eclipse project. 下载Lucene源代码并将其放在Eclipse项目中。 Start tomcat in remote debug mode and attach eclipse to the running instance. 在远程调试模式下启动tomcat并将eclipse附加到正在运行的实例。 That way you should be able to set break-points where ever you want. 这样,您应该可以在任何需要的地方设置断点。 This is called JPDA . 这称为JPDA

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

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