Reference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Snappoint.
Snappoint
A kind of Breakpoint that can be evaluated
to capture the state of the program at time of evaluation. This is
essentially a Breakpoint with action attrubte
set to :CAPTURE
Inherits
Methods
#evaluate
def evaluate(call_stack_bindings) -> Boolean
Evaluate the breakpoint unless it's already marked as completed. Store evaluted expressions and stack frame variables in @evaluated_expressions, @stack_frames. Mark breakpoint complete if successfully evaluated.
- call_stack_bindings (Array<Binding>) — An array of Ruby Binding objects, from the call stack that leads to the triggering of the breakpoints.
- (Boolean) — True if evaluated successfully; false otherwise.
Constants
STACK_EVAL_DEPTH
value: 5
Max number of top stacks to collect local variables information
MAX_PAYLOAD_SIZE
value: 32_768
Max size of payload a Snappoint collects