13.2. Debug expression evaluator
The DEBUG_EVAL module provides runtime expression evaluation for debugging purposes. It can evaluate daslang expressions in the context of a running program, supporting variable inspection and interactive debugging.
All functions and symbols are in “debug_eval” module, use require to get access to it.
require daslib/debug_eval
13.2.1. Structures
- debug_eval.Result
Result of evaluating a debug expression.
- Fields:
tinfo : TypeInfo - Type information of the result.
value : float4 - Raw value storage for the result.
data : void? - Pointer to the result data, if available.
error : string - Error message, empty if evaluation succeeded.
13.2.2. Evaluation
- debug_eval.debug_eval(context: table<string, Result>; expr: string): Result
Evaluates a debug expression string with the given variable context and returns the result.
- Arguments:
context : table<string; Result>
expr : string