Eclipse Debug: Source Not Found while remote debugging

Stealth picture Stealth · Oct 10, 2011 · Viewed 28.7k times · Source

In my Java eclipse project, while I am remote debugging, eclipse does not step into the class files of imported library files even though the source file jars are properly mapped to the library files.

Instead it gives me a "Source Not Found" error. But when I am editing the same class in eclipse, I can control-click a class or method name and it takes me to the correct library class file.

Can anyone please tell me what I am doing wrong?

I am using Tomcat 6 and latest Eclipse Java EE.

Answer

Saurabh picture Saurabh · Oct 10, 2011

In this scenario just follow the following steps:

  1. Go to Run → Debug Configurations
  2. Select the remote application configuration being debugged.
  3. Select the second tab named 'Source'
  4. Now add the folder/projects containing the source code explicitly here.