Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / September 2004

Tip: Looking for answers? Try searching our database.

"Trace into" in Eclipse

Thread view: 
Samar Hossam - 22 Sep 2004 15:27 GMT
Dear sir or madam,

I faced a problem in Eclipse and was urgently looking for help:

I have some code in a jar file, and I need to trace into it. I managed
to decompile the jar file, remove the needed classes from the jar file
and re-jar it.

I included the new jar file in my project and the classes I needed as
sources are included in the src folder. When I start debugging,
everything goes fine until I trace into a method located in one of the
classes I have decompiled and excluded from the jar file.

The following happens: The cursor stands in a wrong position, i.e. not
on the method I have just traced into. I found out (using watches and
some heuristics) that the debugging process goes correctly, but the
only problem is that the cursor stands on the wrong line.

As a temporary solution, I added some lines (comments) in order to
shift eveything down and it worked. But after a while my method called
another one located above it. And again the cursor stood wrong. Now I
cannot change anything because my changes are relative to the first
method.

Besides, this solution is rather stupied.

I would appreciate your help. Here's my e-mail address:
Samar.Hossam@web.de

Regards, Samar
P.Hill - 22 Sep 2004 20:53 GMT
> The following happens: The cursor stands in a wrong position, i.e. not
> on the method I have just traced into.

I would guess that the classpath for the project contains the original
class somwhere BEFORE the one you are recompiling.

make sure your output folder is in the list in the right location.

-Paul


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.