The Evaluator view allows the evaluation of Java-like expressions in the context of the debuggee. This means you can refer to variables and fields, invoke methods, and perform other arithmetic and logic operations.
In order to reference variables and invoke methods, the current thread and stack frame must be set. See the links to the help for the Call Stack and Threads views at the bottom of this page.
Most, but not all, Java expressions are supported. The following operators are not supported in this expression evaluator.
new
keywordsuper
keywordSupported operators include (listed in order of precedence):
Supported Java keywords include:
Referencing variables and invoking methods in the debuggee is supported when the debugging session is active and the current thread is set and suspended. Method invocations may include expressions for the method arguments, as well as nested method calls.
Below are some examples of valid expressions: