google-cloud-debugger - Class Google::Cloud::Debugger::Snappoint (v0.42.2)
Stay organized with collections
Save and categorize content based on your preferences.
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
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.
Parameter
call_stack_bindings (Array<Binding>) — An array of Ruby Binding
objects, from the call stack that leads to the triggering of the
breakpoints.
Returns
(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
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# google-cloud-debugger - Class Google::Cloud::Debugger::Snappoint (v0.42.2)\n\nReference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Snappoint.\n\nSnappoint\n---------\n\nA kind of [Breakpoint](/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Breakpoint \"Google::Cloud::Debugger::Breakpoint (class)\") that can be evaluated\nto capture the state of the program at time of evaluation. This is\nessentially a [Breakpoint](/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Breakpoint \"Google::Cloud::Debugger::Breakpoint (class)\") with action attrubte\nset to `:CAPTURE` \n\nInherits\n--------\n\n- [Google::Cloud::Debugger::Breakpoint](./Google-Cloud-Debugger-Breakpoint)\n\nMethods\n-------\n\n### #evaluate\n\n def evaluate(call_stack_bindings) -\u003e Boolean\n\nEvaluate the breakpoint unless it's already marked as completed.\nStore evaluted expressions and stack frame variables in\n@evaluated_expressions, @stack_frames. Mark breakpoint complete if\nsuccessfully evaluated. \n**Parameter**\n\n- **call_stack_bindings** (Array\\\u003cBinding\\\u003e) --- An array of Ruby Binding objects, from the call stack that leads to the triggering of the breakpoints. \n**Returns**\n\n- (Boolean) --- True if evaluated successfully; false otherwise.\n\nConstants\n---------\n\n### STACK_EVAL_DEPTH\n\n**value:** 5 \nMax number of top stacks to collect local variables information\n\n### MAX_PAYLOAD_SIZE\n\n**value:** 32_768 \nMax size of payload a Snappoint collects"]]