Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Inspect(Ctrl+shift+I) not working

Tags:

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.

like image 464
PSR Avatar asked Aug 16 '12 13:08

PSR


People also ask

What does Ctrl Shift I do in Eclipse?

Under Eclipse I can inspect expressions/variables in debug mode with Ctrl + Shift + I .

How do I enable debugging in eclipse?

A Java program can be debugged simply by right clicking on the Java editor class file from Package explorer. Select Debug As → Java Application or use the shortcut Alt + Shift + D, J instead.

How do I exit debug in eclipse?

Right Click the project and Open Properties. Then Select Run/Debug Setting from there you will find all the launch Configured. Delete all the launch and Run the application.


1 Answers

This might be useful:

Find the thread in your debug window that you are in the breakpoint for. Right click on it. Under relaunch should be an edit launch configuration selection. Select that.

Select Source tab. Add. Java Project. Select the java project that the code exists in.

like image 183
Ashutosh Jindal Avatar answered Sep 25 '22 20:09

Ashutosh Jindal