Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Can't debug source code in M7
Can't debug source code in M7 [message #203722] Tue, 17 May 2005 09:19 Go to next message
Eclipse UserFriend
Hello

I have moved from M6 to M7 and I find I cannot make the debugger go to the
source code when it stops at a breakpoint.

I create a project called foo with the following (nothing else) class in the
directory "src" at the root of the project:

public class MainFoo
{
public static void main(String[] args)
{
int i = 8;
i++;
}
}

There is a breakpoint at the i++ statement. The breakpoint is hit and I get
a white editor with "Source not found" and a button labelled "Edit Source
Lookup Path"
When I click the button I find the Source Lookup path contains a "Default"
root which contains "foo", which contains "src - \foo"

I appreciate any suggestions.

I am on Windows, Java 1.5

Michael
Re: Can't debug source code in M7 [message #203749 is a reply to message #203722] Tue, 17 May 2005 10:34 Go to previous messageGo to next message
Eclipse UserFriend
Anything in the log?

Darin

"Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
news:d6cr4v$qs4$1@news.eclipse.org...
> Hello
>
> I have moved from M6 to M7 and I find I cannot make the debugger go to the
> source code when it stops at a breakpoint.
>
> I create a project called foo with the following (nothing else) class in
> the directory "src" at the root of the project:
>
> public class MainFoo
> {
> public static void main(String[] args)
> {
> int i = 8;
> i++;
> }
> }
>
> There is a breakpoint at the i++ statement. The breakpoint is hit and I
> get a white editor with "Source not found" and a button labelled "Edit
> Source Lookup Path"
> When I click the button I find the Source Lookup path contains a "Default"
> root which contains "foo", which contains "src - \foo"
>
> I appreciate any suggestions.
>
> I am on Windows, Java 1.5
>
> Michael
>
Re: Can't debug source code in M7 [message #203778 is a reply to message #203749] Tue, 17 May 2005 10:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi

I'm not sure where i should be looking for the log. There's no .log file in
workspace\.metadata

"Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
news:d6cvij$1v6$1@news.eclipse.org...
> Anything in the log?
>
> Darin
>
> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
> news:d6cr4v$qs4$1@news.eclipse.org...
>> Hello
>>
>> I have moved from M6 to M7 and I find I cannot make the debugger go to
>> the source code when it stops at a breakpoint.
>>
>> I create a project called foo with the following (nothing else) class in
>> the directory "src" at the root of the project:
>>
>> public class MainFoo
>> {
>> public static void main(String[] args)
>> {
>> int i = 8;
>> i++;
>> }
>> }
>>
>> There is a breakpoint at the i++ statement. The breakpoint is hit and I
>> get a white editor with "Source not found" and a button labelled "Edit
>> Source Lookup Path"
>> When I click the button I find the Source Lookup path contains a
>> "Default" root which contains "foo", which contains "src - \foo"
>>
>> I appreciate any suggestions.
>>
>> I am on Windows, Java 1.5
>>
>> Michael
>>
>
>
Re: Can't debug source code in M7 [message #203785 is a reply to message #203778] Tue, 17 May 2005 11:20 Go to previous messageGo to next message
Eclipse UserFriend
I have exactly the same problem ..
M6 was working fine and using the M7 i have the "Source not found"
I tried to rebuild my projects , start with a -clean , .... nothing was
working ....


In the log there is the following messages :

!SUBENTRY 1 org.eclipse.debug.core 4 120 2005-05-16 10:37:00.790
!MESSAGE Unable to access archive D:\DEV\2.1\tools\lib
!STACK 0
java.util.zip.ZipException: Access is denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at
org.eclipse.debug.internal.core.sourcelookup.SourceLookupUti ls.getZipFile(SourceLookupUtils.java:67)
at
org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.getArchive(ExternalArchiveSourceContainer. java:193)
at
org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.findSourceElements(ExternalArchiveSourceCo ntainer.java:79)
at
org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :78)
at
org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :45)
at
org.eclipse.debug.core.sourcelookup.AbstractSourceLookupPart icipant.findSourceElements(AbstractSourceLookupParticipant.j ava:60)
at
org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor$SourceLookupQuery.run(AbstractSourceLookupDirector.java :126)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1029)
at org.eclipse.core.runtime.Platform.run(Platform.java:775)
at
org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.doSourceLookup(AbstractSourceLookupDirector.java:465)
at
org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.getSourceElement(AbstractSourceLookupDirector.java:715)
at
org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacil ity.lookup(SourceLookupFacility.java:138)
at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools. java:658)
at
org.eclipse.debug.internal.ui.views.launch.LaunchView$Source LookupJob.run(LaunchView.java:176)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)


"Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
news:d6d0i5$3ar$1@news.eclipse.org...
> Hi
>
> I'm not sure where i should be looking for the log. There's no .log file
> in workspace\.metadata
>
> "Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
> news:d6cvij$1v6$1@news.eclipse.org...
>> Anything in the log?
>>
>> Darin
>>
>> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
>> news:d6cr4v$qs4$1@news.eclipse.org...
>>> Hello
>>>
>>> I have moved from M6 to M7 and I find I cannot make the debugger go to
>>> the source code when it stops at a breakpoint.
>>>
>>> I create a project called foo with the following (nothing else) class in
>>> the directory "src" at the root of the project:
>>>
>>> public class MainFoo
>>> {
>>> public static void main(String[] args)
>>> {
>>> int i = 8;
>>> i++;
>>> }
>>> }
>>>
>>> There is a breakpoint at the i++ statement. The breakpoint is hit and I
>>> get a white editor with "Source not found" and a button labelled "Edit
>>> Source Lookup Path"
>>> When I click the button I find the Source Lookup path contains a
>>> "Default" root which contains "foo", which contains "src - \foo"
>>>
>>> I appreciate any suggestions.
>>>
>>> I am on Windows, Java 1.5
>>>
>>> Michael
>>>
>>
>>
>
>
Re: Can't debug source code in M7 [message #203800 is a reply to message #203785] Tue, 17 May 2005 11:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Do you get the same problem even with a simple 2 line program like my "foo"
project?

Michael



"T.Hanot" <thanot@infovista.com> wrote in message
news:d6d24m$5li$1@news.eclipse.org...
>I have exactly the same problem ..
> M6 was working fine and using the M7 i have the "Source not found"
> I tried to rebuild my projects , start with a -clean , .... nothing was
> working ....
>
>
> In the log there is the following messages :
>
> !SUBENTRY 1 org.eclipse.debug.core 4 120 2005-05-16 10:37:00.790
> !MESSAGE Unable to access archive D:\DEV\2.1\tools\lib
> !STACK 0
> java.util.zip.ZipException: Access is denied
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(Unknown Source)
> at java.util.zip.ZipFile.<init>(Unknown Source)
> at
> org.eclipse.debug.internal.core.sourcelookup.SourceLookupUti ls.getZipFile(SourceLookupUtils.java:67)
> at
> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.getArchive(ExternalArchiveSourceContainer. java:193)
> at
> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.findSourceElements(ExternalArchiveSourceCo ntainer.java:79)
> at
> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :78)
> at
> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :45)
> at
> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupPart icipant.findSourceElements(AbstractSourceLookupParticipant.j ava:60)
> at
> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor$SourceLookupQuery.run(AbstractSourceLookupDirector.java :126)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1029)
> at org.eclipse.core.runtime.Platform.run(Platform.java:775)
> at
> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.doSourceLookup(AbstractSourceLookupDirector.java:465)
> at
> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.getSourceElement(AbstractSourceLookupDirector.java:715)
> at
> org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacil ity.lookup(SourceLookupFacility.java:138)
> at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools. java:658)
> at
> org.eclipse.debug.internal.ui.views.launch.LaunchView$Source LookupJob.run(LaunchView.java:176)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)
>
>
> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
> news:d6d0i5$3ar$1@news.eclipse.org...
>> Hi
>>
>> I'm not sure where i should be looking for the log. There's no .log file
>> in workspace\.metadata
>>
>> "Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
>> news:d6cvij$1v6$1@news.eclipse.org...
>>> Anything in the log?
>>>
>>> Darin
>>>
>>> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
>>> news:d6cr4v$qs4$1@news.eclipse.org...
>>>> Hello
>>>>
>>>> I have moved from M6 to M7 and I find I cannot make the debugger go to
>>>> the source code when it stops at a breakpoint.
>>>>
>>>> I create a project called foo with the following (nothing else) class
>>>> in the directory "src" at the root of the project:
>>>>
>>>> public class MainFoo
>>>> {
>>>> public static void main(String[] args)
>>>> {
>>>> int i = 8;
>>>> i++;
>>>> }
>>>> }
>>>>
>>>> There is a breakpoint at the i++ statement. The breakpoint is hit and
>>>> I get a white editor with "Source not found" and a button labelled
>>>> "Edit Source Lookup Path"
>>>> When I click the button I find the Source Lookup path contains a
>>>> "Default" root which contains "foo", which contains "src - \foo"
>>>>
>>>> I appreciate any suggestions.
>>>>
>>>> I am on Windows, Java 1.5
>>>>
>>>> Michael
>>>>
>>>
>>>
>>
>>
>
>
Re: Can't debug source code in M7 [message #203832 is a reply to message #203800] Tue, 17 May 2005 12:42 Go to previous messageGo to next message
Eclipse UserFriend
Yes the same...
I 'm not sure about this
but may be it's the way we are starting eclipse :

using the -data <MYWORKSPACE> it 's not working
specifying the workspace with the eclipse dialog box , allow it to works ...

i don't understand exactly why ...

May be because the -data does not support the Windows syntax using a
different drive ( d: )





"Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
news:d6d43j$8a5$1@news.eclipse.org...
> Hi
>
> Do you get the same problem even with a simple 2 line program like my
> "foo" project?
>
> Michael
>
>
>
> "T.Hanot" <thanot@infovista.com> wrote in message
> news:d6d24m$5li$1@news.eclipse.org...
>>I have exactly the same problem ..
>> M6 was working fine and using the M7 i have the "Source not found"
>> I tried to rebuild my projects , start with a -clean , .... nothing was
>> working ....
>>
>>
>> In the log there is the following messages :
>>
>> !SUBENTRY 1 org.eclipse.debug.core 4 120 2005-05-16 10:37:00.790
>> !MESSAGE Unable to access archive D:\DEV\2.1\tools\lib
>> !STACK 0
>> java.util.zip.ZipException: Access is denied
>> at java.util.zip.ZipFile.open(Native Method)
>> at java.util.zip.ZipFile.<init>(Unknown Source)
>> at java.util.zip.ZipFile.<init>(Unknown Source)
>> at
>> org.eclipse.debug.internal.core.sourcelookup.SourceLookupUti ls.getZipFile(SourceLookupUtils.java:67)
>> at
>> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.getArchive(ExternalArchiveSourceContainer. java:193)
>> at
>> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.findSourceElements(ExternalArchiveSourceCo ntainer.java:79)
>> at
>> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :78)
>> at
>> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :45)
>> at
>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupPart icipant.findSourceElements(AbstractSourceLookupParticipant.j ava:60)
>> at
>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor$SourceLookupQuery.run(AbstractSourceLookupDirector.java :126)
>> at
>> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1029)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:775)
>> at
>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.doSourceLookup(AbstractSourceLookupDirector.java:465)
>> at
>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.getSourceElement(AbstractSourceLookupDirector.java:715)
>> at
>> org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacil ity.lookup(SourceLookupFacility.java:138)
>> at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools. java:658)
>> at
>> org.eclipse.debug.internal.ui.views.launch.LaunchView$Source LookupJob.run(LaunchView.java:176)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)
>>
>>
>> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
>> news:d6d0i5$3ar$1@news.eclipse.org...
>>> Hi
>>>
>>> I'm not sure where i should be looking for the log. There's no .log
>>> file in workspace\.metadata
>>>
>>> "Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
>>> news:d6cvij$1v6$1@news.eclipse.org...
>>>> Anything in the log?
>>>>
>>>> Darin
>>>>
>>>> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
>>>> news:d6cr4v$qs4$1@news.eclipse.org...
>>>>> Hello
>>>>>
>>>>> I have moved from M6 to M7 and I find I cannot make the debugger go to
>>>>> the source code when it stops at a breakpoint.
>>>>>
>>>>> I create a project called foo with the following (nothing else) class
>>>>> in the directory "src" at the root of the project:
>>>>>
>>>>> public class MainFoo
>>>>> {
>>>>> public static void main(String[] args)
>>>>> {
>>>>> int i = 8;
>>>>> i++;
>>>>> }
>>>>> }
>>>>>
>>>>> There is a breakpoint at the i++ statement. The breakpoint is hit and
>>>>> I get a white editor with "Source not found" and a button labelled
>>>>> "Edit Source Lookup Path"
>>>>> When I click the button I find the Source Lookup path contains a
>>>>> "Default" root which contains "foo", which contains "src - \foo"
>>>>>
>>>>> I appreciate any suggestions.
>>>>>
>>>>> I am on Windows, Java 1.5
>>>>>
>>>>> Michael
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: Can't debug source code in M7 [message #203870 is a reply to message #203832] Tue, 17 May 2005 13:51 Go to previous messageGo to next message
Eclipse UserFriend
specifying the workspace with the eclipse dialog box does not work for me

My workspace is outside the Eclipse directory structure, i.e. I have
C:\eclipse
C:\workspace

Maybe that is relevant. Maybe the debugger needs to be told if the source
is outside the Eclipse root.

I have tried many things. I notice that if I add the directory of the
source code using the Source Tab on the Debug dialog (as a File System
Directory), then the debugger picks up the location. However it is a read
only version of the file. It is missing a lot of the functionality I am
used to.

The problem was also reported in the Eclipse Platform newsgroup.



"T.Hanot" <thanot@infovista.com> wrote in message
news:d6d6tt$c1a$1@news.eclipse.org...
> Yes the same...
> I 'm not sure about this
> but may be it's the way we are starting eclipse :
>
> using the -data <MYWORKSPACE> it 's not working
> specifying the workspace with the eclipse dialog box , allow it to works
> ...
>
> i don't understand exactly why ...
>
> May be because the -data does not support the Windows syntax using a
> different drive ( d: )
>
>
>
>
>
> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
> news:d6d43j$8a5$1@news.eclipse.org...
>> Hi
>>
>> Do you get the same problem even with a simple 2 line program like my
>> "foo" project?
>>
>> Michael
>>
>>
>>
>> "T.Hanot" <thanot@infovista.com> wrote in message
>> news:d6d24m$5li$1@news.eclipse.org...
>>>I have exactly the same problem ..
>>> M6 was working fine and using the M7 i have the "Source not found"
>>> I tried to rebuild my projects , start with a -clean , .... nothing was
>>> working ....
>>>
>>>
>>> In the log there is the following messages :
>>>
>>> !SUBENTRY 1 org.eclipse.debug.core 4 120 2005-05-16 10:37:00.790
>>> !MESSAGE Unable to access archive D:\DEV\2.1\tools\lib
>>> !STACK 0
>>> java.util.zip.ZipException: Access is denied
>>> at java.util.zip.ZipFile.open(Native Method)
>>> at java.util.zip.ZipFile.<init>(Unknown Source)
>>> at java.util.zip.ZipFile.<init>(Unknown Source)
>>> at
>>> org.eclipse.debug.internal.core.sourcelookup.SourceLookupUti ls.getZipFile(SourceLookupUtils.java:67)
>>> at
>>> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.getArchive(ExternalArchiveSourceContainer. java:193)
>>> at
>>> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.findSourceElements(ExternalArchiveSourceCo ntainer.java:79)
>>> at
>>> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :78)
>>> at
>>> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :45)
>>> at
>>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupPart icipant.findSourceElements(AbstractSourceLookupParticipant.j ava:60)
>>> at
>>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor$SourceLookupQuery.run(AbstractSourceLookupDirector.java :126)
>>> at
>>> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1029)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:775)
>>> at
>>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.doSourceLookup(AbstractSourceLookupDirector.java:465)
>>> at
>>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.getSourceElement(AbstractSourceLookupDirector.java:715)
>>> at
>>> org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacil ity.lookup(SourceLookupFacility.java:138)
>>> at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools. java:658)
>>> at
>>> org.eclipse.debug.internal.ui.views.launch.LaunchView$Source LookupJob.run(LaunchView.java:176)
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)
>>>
>>>
>>> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
>>> news:d6d0i5$3ar$1@news.eclipse.org...
>>>> Hi
>>>>
>>>> I'm not sure where i should be looking for the log. There's no .log
>>>> file in workspace\.metadata
>>>>
>>>> "Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
>>>> news:d6cvij$1v6$1@news.eclipse.org...
>>>>> Anything in the log?
>>>>>
>>>>> Darin
>>>>>
>>>>> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
>>>>> news:d6cr4v$qs4$1@news.eclipse.org...
>>>>>> Hello
>>>>>>
>>>>>> I have moved from M6 to M7 and I find I cannot make the debugger go
>>>>>> to the source code when it stops at a breakpoint.
>>>>>>
>>>>>> I create a project called foo with the following (nothing else) class
>>>>>> in the directory "src" at the root of the project:
>>>>>>
>>>>>> public class MainFoo
>>>>>> {
>>>>>> public static void main(String[] args)
>>>>>> {
>>>>>> int i = 8;
>>>>>> i++;
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> There is a breakpoint at the i++ statement. The breakpoint is hit
>>>>>> and I get a white editor with "Source not found" and a button
>>>>>> labelled "Edit Source Lookup Path"
>>>>>> When I click the button I find the Source Lookup path contains a
>>>>>> "Default" root which contains "foo", which contains "src - \foo"
>>>>>>
>>>>>> I appreciate any suggestions.
>>>>>>
>>>>>> I am on Windows, Java 1.5
>>>>>>
>>>>>> Michael
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: Can't debug source code in M7 [message #203985 is a reply to message #203870] Wed, 18 May 2005 04:22 Go to previous messageGo to next message
Eclipse UserFriend
I restored a backup of the workspace (The workspace I used with M6).
Debugging is now behaving properly. My directory structure is not a
problem. i.e. the following works:
> C:\eclipse
> C:\workspace



"Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
news:d6db32$h75$1@news.eclipse.org...
> specifying the workspace with the eclipse dialog box does not work for me
>
> My workspace is outside the Eclipse directory structure, i.e. I have
> C:\eclipse
> C:\workspace
>
> Maybe that is relevant. Maybe the debugger needs to be told if the
> source is outside the Eclipse root.
>
> I have tried many things. I notice that if I add the directory of the
> source code using the Source Tab on the Debug dialog (as a File System
> Directory), then the debugger picks up the location. However it is a read
> only version of the file. It is missing a lot of the functionality I am
> used to.
>
> The problem was also reported in the Eclipse Platform newsgroup.
>
>
>
> "T.Hanot" <thanot@infovista.com> wrote in message
> news:d6d6tt$c1a$1@news.eclipse.org...
>> Yes the same...
>> I 'm not sure about this
>> but may be it's the way we are starting eclipse :
>>
>> using the -data <MYWORKSPACE> it 's not working
>> specifying the workspace with the eclipse dialog box , allow it to works
>> ...
>>
>> i don't understand exactly why ...
>>
>> May be because the -data does not support the Windows syntax using a
>> different drive ( d: )
>>
>>
>>
>>
>>
>> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
>> news:d6d43j$8a5$1@news.eclipse.org...
>>> Hi
>>>
>>> Do you get the same problem even with a simple 2 line program like my
>>> "foo" project?
>>>
>>> Michael
>>>
>>>
>>>
>>> "T.Hanot" <thanot@infovista.com> wrote in message
>>> news:d6d24m$5li$1@news.eclipse.org...
>>>>I have exactly the same problem ..
>>>> M6 was working fine and using the M7 i have the "Source not found"
>>>> I tried to rebuild my projects , start with a -clean , .... nothing was
>>>> working ....
>>>>
>>>>
>>>> In the log there is the following messages :
>>>>
>>>> !SUBENTRY 1 org.eclipse.debug.core 4 120 2005-05-16 10:37:00.790
>>>> !MESSAGE Unable to access archive D:\DEV\2.1\tools\lib
>>>> !STACK 0
>>>> java.util.zip.ZipException: Access is denied
>>>> at java.util.zip.ZipFile.open(Native Method)
>>>> at java.util.zip.ZipFile.<init>(Unknown Source)
>>>> at java.util.zip.ZipFile.<init>(Unknown Source)
>>>> at
>>>> org.eclipse.debug.internal.core.sourcelookup.SourceLookupUti ls.getZipFile(SourceLookupUtils.java:67)
>>>> at
>>>> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.getArchive(ExternalArchiveSourceContainer. java:193)
>>>> at
>>>> org.eclipse.debug.core.sourcelookup.containers.ExternalArchi veSourceContainer.findSourceElements(ExternalArchiveSourceCo ntainer.java:79)
>>>> at
>>>> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :78)
>>>> at
>>>> org.eclipse.debug.core.sourcelookup.containers.CompositeSour ceContainer.findSourceElements(CompositeSourceContainer.java :45)
>>>> at
>>>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupPart icipant.findSourceElements(AbstractSourceLookupParticipant.j ava:60)
>>>> at
>>>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor$SourceLookupQuery.run(AbstractSourceLookupDirector.java :126)
>>>> at
>>>> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1029)
>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:775)
>>>> at
>>>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.doSourceLookup(AbstractSourceLookupDirector.java:465)
>>>> at
>>>> org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDire ctor.getSourceElement(AbstractSourceLookupDirector.java:715)
>>>> at
>>>> org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacil ity.lookup(SourceLookupFacility.java:138)
>>>> at
>>>> org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools. java:658)
>>>> at
>>>> org.eclipse.debug.internal.ui.views.launch.LaunchView$Source LookupJob.run(LaunchView.java:176)
>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)
>>>>
>>>>
>>>> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
>>>> news:d6d0i5$3ar$1@news.eclipse.org...
>>>>> Hi
>>>>>
>>>>> I'm not sure where i should be looking for the log. There's no .log
>>>>> file in workspace\.metadata
>>>>>
>>>>> "Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
>>>>> news:d6cvij$1v6$1@news.eclipse.org...
>>>>>> Anything in the log?
>>>>>>
>>>>>> Darin
>>>>>>
>>>>>> "Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
>>>>>> news:d6cr4v$qs4$1@news.eclipse.org...
>>>>>>> Hello
>>>>>>>
>>>>>>> I have moved from M6 to M7 and I find I cannot make the debugger go
>>>>>>> to the source code when it stops at a breakpoint.
>>>>>>>
>>>>>>> I create a project called foo with the following (nothing else)
>>>>>>> class in the directory "src" at the root of the project:
>>>>>>>
>>>>>>> public class MainFoo
>>>>>>> {
>>>>>>> public static void main(String[] args)
>>>>>>> {
>>>>>>> int i = 8;
>>>>>>> i++;
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>> There is a breakpoint at the i++ statement. The breakpoint is hit
>>>>>>> and I get a white editor with "Source not found" and a button
>>>>>>> labelled "Edit Source Lookup Path"
>>>>>>> When I click the button I find the Source Lookup path contains a
>>>>>>> "Default" root which contains "foo", which contains "src - \foo"
>>>>>>>
>>>>>>> I appreciate any suggestions.
>>>>>>>
>>>>>>> I am on Windows, Java 1.5
>>>>>>>
>>>>>>> Michael
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: Can't debug source code in M7 [message #204079 is a reply to message #203722] Wed, 18 May 2005 12:17 Go to previous message
Eclipse UserFriend
Likely https://bugs.eclipse.org/bugs/show_bug.cgi?id=95679

Darins

"Michael Doorley" <michael.doorley@eeng.dcu.ie> wrote in message
news:d6cr4v$qs4$1@news.eclipse.org...
> Hello
>
> I have moved from M6 to M7 and I find I cannot make the debugger go to the
> source code when it stops at a breakpoint.
>
> I create a project called foo with the following (nothing else) class in
the
> directory "src" at the root of the project:
>
> public class MainFoo
> {
> public static void main(String[] args)
> {
> int i = 8;
> i++;
> }
> }
>
> There is a breakpoint at the i++ statement. The breakpoint is hit and I
get
> a white editor with "Source not found" and a button labelled "Edit Source
> Lookup Path"
> When I click the button I find the Source Lookup path contains a "Default"
> root which contains "foo", which contains "src - \foo"
>
> I appreciate any suggestions.
>
> I am on Windows, Java 1.5
>
> Michael
>
>
Previous Topic:JDK 5.0 on OS X 10.4
Next Topic:3.1 M7: Ant External Tools do not work when running on a separate JRE
Goto Forum:
  


Current Time: Tue Jul 22 03:29:05 EDT 2025

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

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

Back to the top