google-cloud-debugger - Class Google::Cloud::Debugger::Breakpoint::Evaluator (v0.42.2)

Reference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Breakpoint::Evaluator.

Helps to evaluate program state at the location of breakpoint during executing. The program state, such as local variables and call stack, are retrieved using Ruby Binding objects.

The breakpoints may consist of conditional expression and other code expressions. The Evaluator helps evaluates these expression in a read-only context. Meaning if the expressions trigger any write operations in middle of the evaluation, the evaluator is able to abort the operation and prevent the program state from being altered.

The evaluated results are saved onto the breakpoints fields. See Stackdriver Breakpoints Doc for details.

Inherits

  • Object

Constants

PROHIBITED_OPERATION_MSG

value: "Prohibited operation detected".freeze

MUTATION_DETECTED_MSG

value: "Mutation detected!".freeze

COMPILATION_FAIL_MSG

value: "Unable to compile expression".freeze

LONG_EVAL_MSG

value: "Evaluation exceeded time limit".freeze

EVALUATOR_REFERENCE

value: :evaluator