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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# google-cloud-debugger - Class Google::Cloud::Debugger::Breakpoint::Evaluator (v0.42.2)\n\nReference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Breakpoint::Evaluator.\n\nHelps to evaluate program state at the location of breakpoint during\nexecuting. The program state, such as local variables and call stack,\nare retrieved using Ruby Binding objects.\n\n\nThe breakpoints may consist of conditional expression and other\ncode expressions. The Evaluator helps evaluates these expression in\na read-only context. Meaning if the expressions trigger any write\noperations in middle of the evaluation, the evaluator is able to\nabort the operation and prevent the program state from being altered.\n\n\u003cbr /\u003e\n\nThe evaluated results are saved onto the breakpoints fields. See\n[Stackdriver Breakpoints\nDoc](https://cloud.google.com/debugger/api/reference/rpc/google.devtools.clouddebugger.v2#google.devtools.clouddebugger.v2.Breakpoint)\nfor details. \n\nInherits\n--------\n\n- Object\n\nConstants\n---------\n\n### PROHIBITED_OPERATION_MSG\n\n**value:**\"Prohibited operation detected\".freeze\n\n### MUTATION_DETECTED_MSG\n\n**value:**\"Mutation detected!\".freeze\n\n### COMPILATION_FAIL_MSG\n\n**value:**\"Unable to compile expression\".freeze\n\n### LONG_EVAL_MSG\n\n**value:**\"Evaluation exceeded time limit\".freeze\n\n### EVALUATOR_REFERENCE\n\n**value:** :**evaluator**"]]