Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I get "Source not found" when debugging my Java code in Eclipse

I'm trying to debug my Java application in Eclipse however when I hit a breakpoint I simply see the following instead of my source:

Source not found message

If I change the stack frame in the Debug window then I can see the function name change in the tab - this is definitely my code, the line number is correct and I'm using the latest build but I still can't get Eclipse to show the source (despite it being open in another tab!)

I'm new to Eclipse and so I'm struggling to find my way around, but everything that I've stumbled across so far seems fine to me.

What might cause this to happen and how can I fix it?

like image 633
Justin Avatar asked Jul 19 '11 21:07

Justin


2 Answers

Sounds like the 'source lookup path' section if you edit the debug configuration isn't setup correctly?

like image 50
rich Avatar answered Oct 08 '22 12:10

rich


Click on "Edit Source Lookup Path" button and then click on Add button then Java Project and include your imported project .. Hope this will solve your problem

like image 44
JAB Avatar answered Oct 08 '22 11:10

JAB