probe method
Evaluates expression and returns its value as a string,
or null when the expression is not a value expression.
Implementation
Future<String?> probe(String expression) async {
final result = await evaluate(expression);
if (result is ErrorRef) return null;
return (result as InstanceRef).valueAsString;
}