[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-debug-dev] Implementing IWatchExpressionDelegate
|
Generally, you can retrieve the variables contained in a variable by using
IVariable.getValue().getVariables(). I.e. a value representing a data
structure may contain more variables. However, its entirely up to your
debug model/language to determine what sort of scoping rules exist, and if
B should be visible in the context of A.
Darin
From:
Ralf Buschermoehle <lobequadrat@xxxxxxxxxxxxxx>
To:
"Eclipse Platform Debug component developers list."
<platform-debug-dev@xxxxxxxxxxx>
Date:
10/25/2009 05:40 AM
Subject:
[platform-debug-dev] Implementing IWatchExpressionDelegate
Sent by:
platform-debug-dev-bounces@xxxxxxxxxxx
Hello,
I would like to use Watch Expressions in my Debug Platform project.
Looking in the WatchExpressionDelegate I get
public void evaluateExpression(String expression, IDebugElement context,
IWatchExpressionListener listener)
whereby expression is the Variable Name of the Variable Window and
context is a StackFrame of the surrounding context.
My problem is that context has all Variables (of course according to
it's name) of the surrounding Stack Frame. Since my variable names (of
the variable view) are only unique on their first level e.g.,
uniqueID variable "A" -->(unfolding a "complex" variable)--> "B"
("living" inside of "A").
I am able to get the value of the expression on the first level (by
traversing the Stackframe) - but not the value of variable B since B
might occur multiple times in the Stackframe.
Is there a ("direct") way to get the value of "B"?
Greetings,
Ralf
_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-debug-dev