Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » problem debugging class
problem debugging class [message #243779] Wed, 16 May 2007 09:29 Go to next message
Eclipse UserFriend
Hi,

I am trying to debug a class, but when I reach a breakpoint it appears
not in my source class but a duplicate class. Class looks the same but
without any changes I've added (print statements, string initialization
etc). Also the icon for editor is different, still a "J", but different.
What's going on here? I am doing something wrong?

thanks,
Alex
Re: problem debugging class [message #243784 is a reply to message #243779] Wed, 16 May 2007 11:24 Go to previous messageGo to next message
Eclipse UserFriend
Somewhere on your source lookup you have the same class and this one is
being found before the one you are editing in your workspace.
For a Java application, take a look at the Source tab on your Java
Application launch configuration.

HTH
Darins

"Aleksandr Krvavets" <aleksandr.kravets@gmail.com> wrote in message
news:f2f0uu$in5$1@build.eclipse.org...
> Hi,
>
> I am trying to debug a class, but when I reach a breakpoint it appears not
> in my source class but a duplicate class. Class looks the same but without
> any changes I've added (print statements, string initialization etc). Also
> the icon for editor is different, still a "J", but different. What's going
> on here? I am doing something wrong?
>
> thanks,
> Alex
Re: problem debugging class [message #243791 is a reply to message #243784] Wed, 16 May 2007 12:13 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Darin,

I am running Eclipse Application and there is no Source tab there.

Alex

Darin Swanson wrote:
> Somewhere on your source lookup you have the same class and this one is
> being found before the one you are editing in your workspace.
> For a Java application, take a look at the Source tab on your Java
> Application launch configuration.
>
> HTH
> Darins
>
> "Aleksandr Krvavets" <aleksandr.kravets@gmail.com> wrote in message
> news:f2f0uu$in5$1@build.eclipse.org...
>> Hi,
>>
>> I am trying to debug a class, but when I reach a breakpoint it appears not
>> in my source class but a duplicate class. Class looks the same but without
>> any changes I've added (print statements, string initialization etc). Also
>> the icon for editor is different, still a "J", but different. What's going
>> on here? I am doing something wrong?
>>
>> thanks,
>> Alex
>
>
Re: problem debugging class [message #243795 is a reply to message #243791] Wed, 16 May 2007 13:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

Alex,
it sometimes happens to me when i edit plug-ins from workspace, but then
forget to select them in "Launch configuration" and instead them,
versions from my host Eclipse are used.
What it shows if in debug mode, you right click in editor and choose
"Show in Package Explorer"?


Aleksandr Krvavets wrote:
> Thanks Darin,
>
> I am running Eclipse Application and there is no Source tab there.
>
> Alex
>
> Darin Swanson wrote:
>> Somewhere on your source lookup you have the same class and this one
>> is being found before the one you are editing in your workspace.
>> For a Java application, take a look at the Source tab on your Java
>> Application launch configuration.
>>
>> HTH
>> Darins
>>
>> "Aleksandr Krvavets" <aleksandr.kravets@gmail.com> wrote in message
>> news:f2f0uu$in5$1@build.eclipse.org...
>>> Hi,
>>>
>>> I am trying to debug a class, but when I reach a breakpoint it
>>> appears not in my source class but a duplicate class. Class looks the
>>> same but without any changes I've added (print statements, string
>>> initialization etc). Also the icon for editor is different, still a
>>> "J", but different. What's going on here? I am doing something wrong?
>>>
>>> thanks,
>>> Alex
>>
>>
Re: problem debugging class [message #243800 is a reply to message #243795] Wed, 16 May 2007 13:45 Go to previous message
Eclipse UserFriend
It shows the file in my plugin's src directory, but without the changes
I've made. So may be Darin is right that it reads a different source
somehow linked with the actual source file?

Jacek Pospychala wrote:
> Alex,
> it sometimes happens to me when i edit plug-ins from workspace, but then
> forget to select them in "Launch configuration" and instead them,
> versions from my host Eclipse are used.
> What it shows if in debug mode, you right click in editor and choose
> "Show in Package Explorer"?
>
>
> Aleksandr Krvavets wrote:
>> Thanks Darin,
>>
>> I am running Eclipse Application and there is no Source tab there.
>>
>> Alex
>>
>> Darin Swanson wrote:
>>> Somewhere on your source lookup you have the same class and this one
>>> is being found before the one you are editing in your workspace.
>>> For a Java application, take a look at the Source tab on your Java
>>> Application launch configuration.
>>>
>>> HTH
>>> Darins
>>>
>>> "Aleksandr Krvavets" <aleksandr.kravets@gmail.com> wrote in message
>>> news:f2f0uu$in5$1@build.eclipse.org...
>>>> Hi,
>>>>
>>>> I am trying to debug a class, but when I reach a breakpoint it
>>>> appears not in my source class but a duplicate class. Class looks
>>>> the same but without any changes I've added (print statements,
>>>> string initialization etc). Also the icon for editor is different,
>>>> still a "J", but different. What's going on here? I am doing
>>>> something wrong?
>>>>
>>>> thanks,
>>>> Alex
>>>
>>>
Previous Topic:Running a WebProject and an Applet crash Eclipse
Next Topic:A string value passed on from one plug-in to another becomes null
Goto Forum:
  


Current Time: Mon May 12 17:47:59 EDT 2025

Powered by FUDForum. Page generated in 0.03399 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top