# google-cloud-debugger - Class Google::Cloud::Debugger::Snappoint (v0.42.2)

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

## Snappoint

A kind of [Breakpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Breakpoint "Google::Cloud::Debugger::Breakpoint (class)") that can be evaluated
to capture the state of the program at time of evaluation. This is
essentially a [Breakpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Breakpoint "Google::Cloud::Debugger::Breakpoint (class)") with action attrubte
set to `:CAPTURE`

## Inherits

- [Google::Cloud::Debugger::Breakpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger/latest/Google-Cloud-Debugger-Breakpoint)

## 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.
**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