[jbosstools-dev] Handy Plugin - debug another eclipse

Rob Stryker rob.stryker at redhat.com
Mon Mar 31 14:26:39 EDT 2008


Hi Snzejzana:

I've been using it to debug remote java applications... specifically 
I'll start one eclipse with debug variables, and then from another 
eclipse, create a Remote Java Application launch configuration (with no 
project selected) and for the source tab I'd add the 'Eclipse 
Installation" source type using the targeted eclipse's  "eclipse" folder.

It's pretty raw right now... it was quick and dirty ;)   I also 
discovered a bug in it today which I fixed and committed (type id's not 
matching)

If you need any help feel free to contact me directly.

Snjezana Peco wrote:
> I would also like to use this plugin, but can't enable it.
> Could you please tell me what kind of a project, classpath entry and 
> launch conf you are using.
> I tried to add a source attachment using the Java Build Path 
> properties page, but couldn't see  "Eclipse Installation".
> I am sure I added the plugin because I see it in the osgi console.
>
> Snjeza
>
> Max Rydahl Andersen wrote:
>> On Thu, 27 Mar 2008 17:53:44 +0100, Rob Stryker 
>> <rob.stryker at redhat.com> wrote:
>>
>>  
>>> You create a source attachment and it comes up as one of the source
>>> attachment types. It says "Eclipse Installation" right now.
>>>     
>>
>> ah got ya....yes sounds like a handy generic thing ;)
>>
>> /max
>>
>>  
>>> Max Rydahl Andersen wrote:
>>>    
>>>> Yes, I know how to an plugin into eclipse...but from there on what 
>>>> do I do ?
>>>>
>>>> does it all happen automatically and it starts doing lookups 
>>>> without me telling it what to do ?
>>>>
>>>> /max
>>>>
>>>>
>>>>      
>>>>> I could switch it up so it just accepts an ant fileset and is usable
>>>>> anywhere.
>>>>>
>>>>> To enable it, you have to check out the source, export the project 
>>>>> as a
>>>>> plugin (aka have PDE build it for you), and then shove the jar in 
>>>>> your
>>>>> plugins folder.   If you need any help just ask.
>>>>>
>>>>> - Rob
>>>>>
>>>>> Max Rydahl Andersen wrote:
>>>>>
>>>>>        
>>>>>> sounds cool....how do I enable it ? And is it only for PDE or 
>>>>>> usable in general ?
>>>>>>
>>>>>> I could see the use of that elsewhere than just PDE.
>>>>>>
>>>>>> -max
>>>>>>
>>>>>>
>>>>>>
>>>>>>          
>>>>>>> Hi all...
>>>>>>>
>>>>>>> So this past week when I was running 4 different eclipses at 
>>>>>>> once to
>>>>>>> determine the differences between wtp 2.0.1 and wtp 2.0.2 in 
>>>>>>> deploying
>>>>>>> nested archives (the seam bug), I developed a quick plugin to be 
>>>>>>> able to
>>>>>>> add one eclipse's source to source lookup.
>>>>>>>
>>>>>>> The reason I made this is because the current source-lookup 
>>>>>>> options were
>>>>>>> absolute crap. Adding a folder is designated for a folder of solely
>>>>>>> source files. Adding an archive or external archive is the same. 
>>>>>>> There
>>>>>>> was no option to search through a nested folder for all source 
>>>>>>> files.
>>>>>>> And when running in one eclipse and debugging the *same 
>>>>>>> instance*, you
>>>>>>> could of course use the project which allows you to search all 
>>>>>>> plugins.
>>>>>>>
>>>>>>> This becomes most useful when using one eclipse to debug an 
>>>>>>> *older* (or
>>>>>>> newer) version with completely different source. That's 
>>>>>>> basically the
>>>>>>> use case. Marshall says he's used it a few times already.
>>>>>>>
>>>>>>> I added it to svn:
>>>>>>> jbosstools/trunk/labs/plugins/org.jboss.tools.labs.pde.sourceprovider 
>>>>>>>
>>>>>>>
>>>>>>> There's no binary in svn yet and it's a little rudimentary =P  It
>>>>>>> basically just searches a root folder (the eclipse installation) 
>>>>>>> for any
>>>>>>> zip file that ends in "src.zip".  Then it delegates to a bunch of
>>>>>>> regular external archive source containers for those individual 
>>>>>>> paths.
>>>>>>>
>>>>>>> Future enhancements if I get annoyed enough may be to allow you 
>>>>>>> to add
>>>>>>> any ant-type pattern matching.  Suggestions are welcome.
>>>>>>>
>>>>>>> Again, I found it to be very very handy and Marshall says he's 
>>>>>>> used it
>>>>>>> as well.
>>>>>>>
>>>>>>> - Rob Stryker
>>>>>>> _______________________________________________
>>>>>>> jbosstools-dev mailing list
>>>>>>> jbosstools-dev at lists.jboss.org
>>>>>>> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>             
>>>>>>
>>>>>>           
>>>>
>>>>
>>>>       
>>>     
>>
>>
>>
>>
>> _______________________________________________
>> jbosstools-dev mailing list
>> jbosstools-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>>
>>   
>




More information about the jbosstools-dev mailing list