Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsWhy does Display View say current exec context not assoc. with a Java project?
https://www.eclipse.org/forums/index.php/mv/msg/153106/482186/#msg_482186
I'm debugging source code that is attached to my project through an externally-linked source folder. I can set breakpoints in this code, inspect variables, and everything else that I can normally do while debugging code.
While I'm sitting at a breakpoint in a static method in that externally-linked source, I entered the name of one of the parameters to the method in the Display View, then selected it and executed "Display". It then said:
----------------------
Evaluation failed. Reason(s):
Unable to evaluate the selected expression:
To perform an 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 workspace.
------------------
I tried all the method parameters, and all the local variables that had been created in the method up to my breakpoint (and that are still in scope). I even tried "System". All of them gave that error.
Is there anything I can do about this?]]>David M. Karr2009-08-25T16:09:01-00:00Re: Why does Display View say current exec context not assoc. with a Java project?
https://www.eclipse.org/forums/index.php/mv/msg/153106/491444/#msg_491444
Select Source tab. Add. Java Project. Select the java project that the code exists in.]]>David Peterson2009-10-14T15:31:29-00:00Re: Why does Display View say current exec context not assoc. with a Java project?
https://www.eclipse.org/forums/index.php/mv/msg/153106/1003750/#msg_1003750
Please help if you can. I have the same problem (can't inspect or display, same error). Eclipse 3.5.2.
Here's my predicament: I'm using Maven pom.xml's and not the Eclipse build path. And I've added "Workspace" in the ...set Source path and yet Inspect and Display still prompts with the error message.
Can someone help me over this bit of a hill? Thanks.]]>Chuck Herrick2013-01-21T23:26:26-00:00