Reputation: 4020
I am doing remote debugging of a Java application and using the debug view of Eclipse. The basic debugging process is working fine and I can see the method stack traces in debug view at the relevant breakpoints. However, I am not seeing the corresponding source code in the tab below and it is saying:
Source not found
The source files are already in my Eclipse project and I can see them in the Java view. I have edited the source look up paths and added the *.java files to it. But even then I am not seeing the source code in the debug view where the execution halts. Any clues on this would be appreciated.
Upvotes: 9
Views: 16626
Reputation: 107
I have done the below steps and it worked for me:
Upvotes: 4
Reputation: 18867
For the Run/Debug configuration that you have been using to Remote Debug, have you followed these steps :
If so, can you post a snapshot of the Run Configuration
?
What I have usually done with a Remote Debug
run configuration is Add Source
as Java Projects
to the Source
tab on the Run/Debug configuration. Thus to add a project called so
, I would proceed as follows :
And when choosing the project, select the two checkboxes :
To end up with this finally :
Upvotes: 13
Reputation: 9216
You are probably using JRebel which is automatically recompiling and reloading classes. Unfortunately Eclipse Debugger doesn't work with class realoaded in this way. In order to make sure that Eclipse will work fine with the class after changes you have to restart your web application container.
Upvotes: 1