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.
Under Eclipse I can inspect expressions/variables in debug mode with Ctrl + Shift + I .
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With