You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Geeta Subramanian <gs...@commvault.com> on 2011/03/17 17:17:30 UTC

Info about Debugging SOLR in Eclipse

Hi,

Can some please let me know the steps on how can I debug the solr code in my eclipse?

I tried to compile the source, use the jars and place in tomcat where I am running solr. And do remote debugging, but it did not stop at any break point.
I also tried to write a sample standalone java class to push the document. But I stopped at solr j classes and not solr server classes.


Please let me know if I am making any mistake.

Regards,
Geeta 













******************Legal Disclaimer***************************
"This communication may contain confidential and privileged material 
for the sole use of the intended recipient.  Any unauthorized review, 
use or distribution by others is strictly prohibited.  If you have 
received the message in error, please advise the sender by reply 
email and delete the message. Thank you."
****************************************************************

RE: Info about Debugging SOLR in Eclipse

Posted by Geeta Subramanian <gs...@commvault.com>.
Hi Markus,

Thanks, I had already followed the steps of this site.
But I am not able to DEBUG the SOLR classes though I am able to run the solr.

I want to see the code flow from the server side, especially the point where solr calls tika and it gets the content from tika.

Thanks for the time & help,
Regards,
Geeta

-----Original Message-----
From: Markus Jelsma [mailto:markus.jelsma@openindex.io] 
Sent: 17 March, 2011 12:22 PM
To: solr-user@lucene.apache.org
Cc: Geeta Subramanian
Subject: Re: Info about Debugging SOLR in Eclipse


http://www.lucidimagination.com/developers/articles/setting-up-apache-solr-in-
eclipse



On Thursday 17 March 2011 17:17:30 Geeta Subramanian wrote:
> Hi,
> 
> Can some please let me know the steps on how can I debug the solr code 
> in my eclipse?
> 
> I tried to compile the source, use the jars and place in tomcat where 
> I am running solr. And do remote debugging, but it did not stop at any 
> break point. I also tried to write a sample standalone java class to 
> push the document. But I stopped at solr j classes and not solr server classes.
> 
> 
> Please let me know if I am making any mistake.
> 
> Regards,
> Geeta
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ******************Legal Disclaimer***************************
> "This communication may contain confidential and privileged material 
> for the sole use of the intended recipient.  Any unauthorized review, 
> use or distribution by others is strictly prohibited.  If you have 
> received the message in error, please advise the sender by reply email 
> and delete the message. Thank you."
> ****************************************************************

--
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350











******************Legal Disclaimer***************************
"This communication may contain confidential and privileged material 
for the sole use of the intended recipient.  Any unauthorized review, 
use or distribution by others is strictly prohibited.  If you have 
received the message in error, please advise the sender by reply 
email and delete the message. Thank you."
****************************************************************

Re: Info about Debugging SOLR in Eclipse

Posted by Markus Jelsma <ma...@openindex.io>.
http://www.lucidimagination.com/developers/articles/setting-up-apache-solr-in-
eclipse



On Thursday 17 March 2011 17:17:30 Geeta Subramanian wrote:
> Hi,
> 
> Can some please let me know the steps on how can I debug the solr code in
> my eclipse?
> 
> I tried to compile the source, use the jars and place in tomcat where I am
> running solr. And do remote debugging, but it did not stop at any break
> point. I also tried to write a sample standalone java class to push the
> document. But I stopped at solr j classes and not solr server classes.
> 
> 
> Please let me know if I am making any mistake.
> 
> Regards,
> Geeta
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ******************Legal Disclaimer***************************
> "This communication may contain confidential and privileged material
> for the sole use of the intended recipient.  Any unauthorized review,
> use or distribution by others is strictly prohibited.  If you have
> received the message in error, please advise the sender by reply
> email and delete the message. Thank you."
> ****************************************************************

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350

Re: Info about Debugging SOLR in Eclipse

Posted by Erick Erickson <er...@gmail.com>.
BTW, it's sometimes easier to debug if you forget the servlet
container and just debug through a Junit test case. Just fire up
an individual test case in debug mode and step wherever you want.

Of course sometimes that's inadequate, but it's worth having in
you bag of tricks.

Best
Erick

On Thu, Mar 17, 2011 at 5:08 PM, Geeta Subramanian
<gs...@commvault.com> wrote:
> Hi All,
>
> Thanks for the help... I am now able to debug my solr. :-)
>
> -----Original Message-----
> From: pkeegan01451@gmail.com [mailto:pkeegan01451@gmail.com] On Behalf Of Peter Keegan
> Sent: 17 March, 2011 3:33 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Info about Debugging SOLR in Eclipse
>
> The instructions refer to the 'Run configuration' menu. Did you try 'Debug configurations'?
>
>
> On Thu, Mar 17, 2011 at 3:27 PM, Peter Keegan <pe...@gmail.com>wrote:
>
>> Can you use jetty?
>>
>>
>> http://www.lucidimagination.com/developers/articles/setting-up-apache-
>> solr-in-eclipse
>>
>> On Thu, Mar 17, 2011 at 12:17 PM, Geeta Subramanian <
>> gsubramanian@commvault.com> wrote:
>>
>>> Hi,
>>>
>>> Can some please let me know the steps on how can I debug the solr
>>> code in my eclipse?
>>>
>>> I tried to compile the source, use the jars and place in tomcat where
>>> I am running solr. And do remote debugging, but it did not stop at
>>> any break point.
>>> I also tried to write a sample standalone java class to push the document.
>>> But I stopped at solr j classes and not solr server classes.
>>>
>>>
>>> Please let me know if I am making any mistake.
>>>
>>> Regards,
>>> Geeta
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ******************Legal Disclaimer***************************
>>> "This communication may contain confidential and privileged material
>>> for the sole use of the intended recipient.  Any unauthorized review,
>>> use or distribution by others is strictly prohibited.  If you have
>>> received the message in error, please advise the sender by reply
>>> email and delete the message. Thank you."
>>> ****************************************************************
>>>
>>
>>
>
>
>
>
>
>
>
>
>
>
>
> ******************Legal Disclaimer***************************
> "This communication may contain confidential and privileged material
> for the sole use of the intended recipient.  Any unauthorized review,
> use or distribution by others is strictly prohibited.  If you have
> received the message in error, please advise the sender by reply
> email and delete the message. Thank you."
> ****************************************************************
>

RE: Info about Debugging SOLR in Eclipse

Posted by Geeta Subramanian <gs...@commvault.com>.
Hi All,

Thanks for the help... I am now able to debug my solr. :-)

-----Original Message-----
From: pkeegan01451@gmail.com [mailto:pkeegan01451@gmail.com] On Behalf Of Peter Keegan
Sent: 17 March, 2011 3:33 PM
To: solr-user@lucene.apache.org
Subject: Re: Info about Debugging SOLR in Eclipse

The instructions refer to the 'Run configuration' menu. Did you try 'Debug configurations'?


On Thu, Mar 17, 2011 at 3:27 PM, Peter Keegan <pe...@gmail.com>wrote:

> Can you use jetty?
>
>
> http://www.lucidimagination.com/developers/articles/setting-up-apache-
> solr-in-eclipse
>
> On Thu, Mar 17, 2011 at 12:17 PM, Geeta Subramanian < 
> gsubramanian@commvault.com> wrote:
>
>> Hi,
>>
>> Can some please let me know the steps on how can I debug the solr 
>> code in my eclipse?
>>
>> I tried to compile the source, use the jars and place in tomcat where 
>> I am running solr. And do remote debugging, but it did not stop at 
>> any break point.
>> I also tried to write a sample standalone java class to push the document.
>> But I stopped at solr j classes and not solr server classes.
>>
>>
>> Please let me know if I am making any mistake.
>>
>> Regards,
>> Geeta
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ******************Legal Disclaimer***************************
>> "This communication may contain confidential and privileged material 
>> for the sole use of the intended recipient.  Any unauthorized review, 
>> use or distribution by others is strictly prohibited.  If you have 
>> received the message in error, please advise the sender by reply 
>> email and delete the message. Thank you."
>> ****************************************************************
>>
>
>











******************Legal Disclaimer***************************
"This communication may contain confidential and privileged material 
for the sole use of the intended recipient.  Any unauthorized review, 
use or distribution by others is strictly prohibited.  If you have 
received the message in error, please advise the sender by reply 
email and delete the message. Thank you."
****************************************************************

Re: Info about Debugging SOLR in Eclipse

Posted by Peter Keegan <pe...@gmail.com>.
The instructions refer to the 'Run configuration' menu. Did you try 'Debug
configurations'?


On Thu, Mar 17, 2011 at 3:27 PM, Peter Keegan <pe...@gmail.com>wrote:

> Can you use jetty?
>
>
> http://www.lucidimagination.com/developers/articles/setting-up-apache-solr-in-eclipse
>
> On Thu, Mar 17, 2011 at 12:17 PM, Geeta Subramanian <
> gsubramanian@commvault.com> wrote:
>
>> Hi,
>>
>> Can some please let me know the steps on how can I debug the solr code in
>> my eclipse?
>>
>> I tried to compile the source, use the jars and place in tomcat where I am
>> running solr. And do remote debugging, but it did not stop at any break
>> point.
>> I also tried to write a sample standalone java class to push the document.
>> But I stopped at solr j classes and not solr server classes.
>>
>>
>> Please let me know if I am making any mistake.
>>
>> Regards,
>> Geeta
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ******************Legal Disclaimer***************************
>> "This communication may contain confidential and privileged material
>> for the sole use of the intended recipient.  Any unauthorized review,
>> use or distribution by others is strictly prohibited.  If you have
>> received the message in error, please advise the sender by reply
>> email and delete the message. Thank you."
>> ****************************************************************
>>
>
>

Re: Info about Debugging SOLR in Eclipse

Posted by Peter Keegan <pe...@gmail.com>.
Can you use jetty?
http://www.lucidimagination.com/developers/articles/setting-up-apache-solr-in-eclipse

On Thu, Mar 17, 2011 at 12:17 PM, Geeta Subramanian <
gsubramanian@commvault.com> wrote:

> Hi,
>
> Can some please let me know the steps on how can I debug the solr code in
> my eclipse?
>
> I tried to compile the source, use the jars and place in tomcat where I am
> running solr. And do remote debugging, but it did not stop at any break
> point.
> I also tried to write a sample standalone java class to push the document.
> But I stopped at solr j classes and not solr server classes.
>
>
> Please let me know if I am making any mistake.
>
> Regards,
> Geeta
>
>
>
>
>
>
>
>
>
>
>
>
>
> ******************Legal Disclaimer***************************
> "This communication may contain confidential and privileged material
> for the sole use of the intended recipient.  Any unauthorized review,
> use or distribution by others is strictly prohibited.  If you have
> received the message in error, please advise the sender by reply
> email and delete the message. Thank you."
> ****************************************************************
>