Eclipse Inspect(Ctrl+shift+I) not working

Viewed 26774

I checked out a maven project in Eclipse and am unable to Inspect a Variable (right click on the variable and click Inspect option).

When I attempt to do so, I get the following message :

To perform any evaluation, an expression must be compiled in the 
context of a java project's build path. The current execution 
context is not associated with a java project in the work-space.

Can any one know what the reason for this might be?

Thanks in advance.

5 Answers

In my case the run configuration was configured correctly. But I needed to:

  • right click on the thread
  • click: Edit Source Lookup...
  • check: Search for duplicate source files on the path
Related