Debugging ImageJ with Eclipse

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Debugging ImageJ with Eclipse

Junkshops
Hello,

I hope this question hasn't been asked too many times, but a search of
the archives with 'debug source' and 'debug parameters' didn't come up
with anything so I hope I'm not committing a faux pas.

I'm trying to step into ImageJ classes with the Eclipse debugger, only
to have the debugger tell me it can't find the source. I downloaded the
source for 1.43q, installed it in a different directory, added it to the
source path, linked the source path to the ij jar directly, but still no
dice. A user on the eclipse forums advised me to ask whether the imageJ
jar was built with debugging parameters included, so here I am. I'm
hoping someone on this list can either tell me whether the jar was built
as described, or better yet, someone who also uses Eclipse could explain
how to get it to see the ij source.

Thanks very much.
Reply | Threaded
Open this post in threaded view
|

Re: Debugging ImageJ with Eclipse

Michael Doube
Hi,

I have ImageJ in Eclipse as a project so I can see the source easily. I
imported the IJ source with EGit, following these instructions:

http://imagejdev.org/eclipse

Michael

> as described, or better yet, someone who also uses Eclipse could explain
> how to get it to see the ij source.
Reply | Threaded
Open this post in threaded view
|

Re: Debugging ImageJ with Eclipse

Junkshops
Hi Michael,

    Thanks for the link; however, that seems like overkill for me - I
just want to figure out how to link the source files I've got to the
ij.jar file, which should be doable based on the Eclipse docs I've seen.
Also, I want to understand what the problem is and how to fix it for
future reference.

Thanks again.

Michael Doube wrote:

> Hi,
>
> I have ImageJ in Eclipse as a project so I can see the source easily. I
> imported the IJ source with EGit, following these instructions:
>
> http://imagejdev.org/eclipse
>
> Michael
>
>  
>> as described, or better yet, someone who also uses Eclipse could explain
>> how to get it to see the ij source.
>>    
>
>  
Reply | Threaded
Open this post in threaded view
|

Re: Debugging ImageJ with Eclipse

Michael Doube
The other option is to:

Download the source as a zip or directory
Right click on your project->Properties->Java Build Path->Libraries
Click on the small triangle to the left of ij.jar
Select Source Attachment, Edit
Locate the source zip or directory, OK.
Source code should now be linked.


> how to link the source files I've got to the
> ij.jar file, which should be doable based on the Eclipse docs I've seen.
> Also, I want to understand what the problem is and how to fix it for
> future reference.