Wednesday, March 29, 2017

Starting Solr In Debug mode

Tags

Make sure you imported your project in eclipse, consisting the solr folder and java project. You can maintain the folder structure as per your project requirement.

Create a bat file consisting of the following Contents in to it. And name it as solr-start.bat

cd "<Solr-Installed-Dir>\solr-6.4.2\bin"
solr.cmd start -a "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=18983"

once if you execute the above bat file then the solr server is started in the debug mode .
Configure the Below Setting in the Eclipse

Host:localhost
Port: 18983

As like below.


Make sure that you have Included all the libraries as below.


Put debug points and execute some query through the browser then you will get the debug in your eclipse .




Happy Learning!!!!! 


EmoticonEmoticon