VisualGDB SDK Documentation

IExpressionEvaluator.EvaluateExpression Method

Asks GDB to evaluate a given C/C++ expression and returns a structured result.

ExpressionValue EvaluateExpression(
   string exp,
   string typeHint


Specifies the expression to evaluate.
Specifies the optional expected C++ type. This parameter is used to detect pointers and convert them to ExpressionValue.Integral with correct flags.

Return Value

If the evaluation fails, the method returns null. Otherwise it returns structured information about the expression represented in an ExpressionValue object.


Note that this method cannot be used to evaluate the expression children and get additional expression attributes. If you require more information about the expression, use the CreateExpression() method instead.

See Also

IExpressionEvaluator Interface | VisualGDBExpressions Namespace