Unable to evaluate the selected expression while debugging Java project in eclipse

Are you having the problem that says Unable to evaluate the selected expression while debugging Java project in eclipse? The problem happened to me when I tried to inspect the values during debugging. The error screen is shown. Solution: - Go to debug window of eclipse - Right click on it - Go to Edit Source Lookup Path - Click Add button - Click to Java Project - Select the java project that the code exists in ( (For example, it is Struts2Project in my case )