Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I best debug solr in intelliJ-idea?

How can I best debuging solr in intelliJ-idea? Which way is easy? when post a query to solr, I want to handle this.

like image 871
iceberg Avatar asked May 08 '14 07:05

iceberg


1 Answers

You can set up the remote debugging. In the Run/Debug Configurations:

IntelliJ IDEA remote debugging

Then when starting your solr with the default jetty (this one is in multicore mode), pass in:

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 -Dsolr.solr.home=multicore -jar start.jar

After solr has started hit Run -> Debug button and choose the debug config. The IntelliJ IDEA attaches to the Solr java process and all the debugging goodies should be available to you.

like image 193
D_K Avatar answered Sep 27 '22 21:09

D_K