title: How do I fix 'Source not found' error when debugging in Eclipse, using Selenium WebDriver?
body: <p>I'm practicing building a test automation framework using Selenium Webdrive in Eclipse with Java, and as part of this I'm debugging through the code I have written so that I have a full understanding (I should note that when I run my tests outside of debug mode they work fine). The issue I have is that I keep encountering 'Source not found' errors in debug mode in respect of a whole load of stuff. </p>
  
  <p>I've attached a screenshot below which shows my debug window in Eclipse, and shows an example of one of the errors.
  <img src="https://i.stack.imgur.com/Wpblb.png" alt="enter image description here"></p>
  
  <p>So, the situation is that I have my TestRunner class from where I am running my tests (see code below)</p>
  
  <pre><code>package dataStructureModel;
  
  import java.util.ArrayList;
  import java.util.List;
  
  import org.openqa.selenium.firefox.FirefoxDriver;
  
  
  public class TestRunner {
  
  public static void main(String[] args) {
  
      FirefoxDriver driver = new FirefoxDriver();
  
      List&lt;iTest&gt; tests = new ArrayList&lt;iTest&gt;();
  
      // adding first test
      tests.add((iTest) new DragDefaultTest001());
  
      // adding second test
      tests.add((iTest) new ColorCheckTest002());
  
      BREAKPOINT HERE!
      for(int i = 0; i &lt; tests.size() ; i++)
      {
          iTest currentTest = tests.get(i);
          currentTest.testSetup(driver);
          boolean testResult = currentTest.runTest();
          if(testResult)
          {
              System.out.println(currentTest.testName() + " test passed.");
          }
          else
          {
              System.out.println(currentTest.testName() + " test failed.");
          }
          currentTest.testCleanup();
      }   
     }
  
  }
  </code></pre>
  
  <p>I've set a breakpoint at the 'for' loop to iterate through my tests (I've not attached the code, given that as mentioned earlier, the tests do run). The Firefox browser loads up and I start stepping through and all looks good. Then I hit one of these 'Source not found' errors', of which there are many. I've attached a screenshot here, which gives an example....<a href="https://i.imgur.com/aDxCAX0.png" rel="nofollow noreferrer">http://i.imgur.com/aDxCAX0.png</a></p>
  
  <p>I know it asks to 'Edit Source Lookup Path', but I'm not sure what I should be referencing? As far as I'm aware I've attached all the selenium jar files, so I'm not sure where I'm going wrong.</p>