Eclipse does not lookup to the right code version while debugging

If you debug some code on a project where you have multiple versions in your workspace, eclipse may lookup for the wrong class.

To tell eclipse which project to search for, go to:

  • Run > Debug Configurations...
  • Click on your debug configuration
  • Go to Source tab
  • In Source Lookup Path panel:
    • remove Workspace entry
    • add the version of your project you want eclipse to search for

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.