Sunday, 23 August 2015

How to solve "Source not found" error during debug in Eclipse.


     In this post, we will learn how to solve "Source not found" error while doing the debug in Eclipse.

     If you run your web application using Java EE Server and try to run it in the debug mode,once you hit the breakpoint , you will get this error ,"Source not found". See the below screenshot.

Source not found error in eclipse
Source not found error screen

   To solve the above problem, please follow the below steps,

1) Click on "Edit Source Lookup Path". You will get the below  "Edit Source Lookup Path"  pop-up(New Window).

Edit source Lookup Path
Edit Source Lookup Path

2) Click on "Add" button of  Edit Source Lookup Window.

Add Java Project
Add Java Project

3) Select "Java Project" and Click on "Ok" button. You will get new Window Project Selection.


Project Selection
Project Selection

4) Select the appropriate Project. & Click on "OK".


Select appropriate Project
Project selected

















  5) Click on OK for the selected project. Then you are able to do the Debug.


Ok for Selected Project
Debug working fine

1 comment:

  1. After adding project also I am getting same 'source not found' error

    ReplyDelete