GdbMiSession.dataEvaluateRange

MiValue[] dataEvaluateRange(string rangeExpr, int maxElements = 100) @trusted

Evaluates a D range and returns its elements.

For ranges with a .length property and indexing, this method uses index-based access and does not mutate the debuggee range.

For generic ranges (no .length), this method falls back to calling .empty, .front, and .popFront() on the range in the debuggee. This consumes the range in the debuggee program — the range will be left in a partially or fully consumed state after this call.

The program must be stopped and supporting function calls.

Parameters

rangeExprExpression representing the range.
maxElementsMaximum number of elements to fetch.

Returns

Array of elements as MiValues.

Throws

GdbException on error.