And a neater way to debug stuff rather than attaching to
Solr is to step through the Junit tests that exercise the code
you need to work on rather than attach to a remote Solr.
This is often much faster rather than compile/start solr/attach.

Of course some problems don't fit that process, but I thought
I'd mention it.

Best,
Erick

On Tue, Jan 12, 2016 at 4:08 AM, Vincenzo D'Amore <v.dam...@gmail.com> wrote:
> Mmmm... I'm not sure it worth the trouble. Anyway, I'm just curious, when
> you find a way let me know.
>
> On Tue, Jan 12, 2016 at 1:01 PM, Rodrigo Testillano <
> rodrite.testill...@gmail.com> wrote:
>
>> Yes, with remote debug is working, but i want up a jetty with solr in
>> Eclipse like i did with tomcat in older versions. Thank you very much for
>> your help! I am going to try  other way to do it, but maybe will be not
>> possible
>>
>> 2016-01-12 12:51 GMT+01:00 Rodrigo Testillano <
>> rodrite.testill...@gmail.com>
>> :
>>
>> > Thank you so much!, I'm going to try right now and tell you my results!!
>> >
>> > 2016-01-12 12:47 GMT+01:00 Vincenzo D'Amore <v.dam...@gmail.com>:
>> >
>> >> Yep.
>> >>
>> >> I have done this just few hours ago.
>> >> Let's download Solr source:
>> >>
>> >>  wget
>> http://it.apache.contactlab.it/lucene/solr/5.4.0/solr-5.4.0-src.tgz
>> >>
>> >> untar the file.
>> >>
>> >> I'm not sure we need, but I have already installed latest versions of:
>> >> ant,
>> >> ivy and maven.
>> >>
>> >> Then in the solr-5.4.0 directory I did this:
>> >>
>> >> ant resolve
>> >>
>> >> ant eclipse
>> >>
>> >> Now you can import solr-5.4.0 as eclipse project.
>> >>
>> >> Under the hood the ant "eclipse" task have created .project and
>> .classpath
>> >> and .settings directory.
>> >>
>> >> Now if you want debug, all you need to do is create with eclipse a java
>> >> remote debug configuration and start solr with the debugging parameters:
>> >>
>> >> ./solr start -m 4g a "-Xdebug
>> >> -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044"
>> >>
>> >> :)
>> >>
>> >> On Tue, Jan 12, 2016 at 12:31 PM, Rodrigo Testillano <
>> >> rodrite.testill...@gmail.com> wrote:
>> >>
>> >> > I need debug my custom processor (updateRequestProcessor)  in my
>> Eclipse
>> >> > IDE. With old Solr version was possible, but with the solr like a
>> >> service
>> >> > with jetty i don't know if exists some way to do
>> >> > --
>> >> > Un Saludo.
>> >> >
>> >> > Rodrigo Testillano Tordesillas.
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Vincenzo D'Amore
>> >> email: v.dam...@gmail.com
>> >> skype: free.dev
>> >> mobile: +39 349 8513251
>> >>
>> >
>> >
>> >
>> > --
>> > Un Saludo.
>> >
>> > Rodrigo Testillano Tordesillas.
>> >
>>
>>
>>
>> --
>> Un Saludo.
>>
>> Rodrigo Testillano Tordesillas.
>>
>
>
>
> --
> Vincenzo D'Amore
> email: v.dam...@gmail.com
> skype: free.dev
> mobile: +39 349 8513251

Reply via email to