Debugger/src/Agent.php
public function handleSnapshot(array $snapshot)
    {
        if (array_key_exists($snapshot['id'], $this->breakpointsById)) {
            $breakpoint = $this->breakpointsById[$snapshot['id']];
            $evaluatedExpressions = $snapshot['evaluatedExpressions'];
            $stackframes = $snapshot['stackframes'];
            $breakpoint->evaluate($evaluatedExpressions, $stackframes, $this->evaluationOptions);
            $this->batchRunner->submitItem($this->identifier, [$this->debuggeeId, $breakpoint]);
        }
    }
public function handleSnapshot(array $snapshot)
    {
        if (array_key_exists($snapshot['id'], $this->breakpointsById)) {
            $breakpoint = $this->breakpointsById[$snapshot['id']];
            $evaluatedExpressions = $snapshot['evaluatedExpressions'];
            $stackframes = $snapshot['stackframes'];
            $breakpoint->evaluate($evaluatedExpressions, $stackframes, $this->evaluationOptions);
            $this->batchRunner->submitItem($this->identifier, [$this->debuggeeId, $breakpoint]);
        }
    }
public function handleSnapshot ( array $ snapshot ) { if ( array_key_exists ( $ snapshot [ 'id' ] , $ this -> breakpointsById ) ) { $ breakpoint = $ this -> breakpointsById [ $ snapshot [ 'id' ] ] ; $ evaluatedExpressions = $ snapshot [ 'evaluatedExpressions' ] ; $ stackframes = $ snapshot [ 'stackframes' ] ; $ breakpoint -> evaluate ( $ evaluatedExpressions , $ stackframes , $ this -> evaluationOptions ) ; $ this -> batchRunner -> submitItem ( $ this -> identifier , [ $ this -> debuggeeId , $ breakpoint ] ) ; } }
Callback for reporting a snapshot.

@access private
@param array $snapshot {
Snapshot data

@type string $id The breakpoint id of the snapshot
@type array $evaluatedExpressions The results of evaluating the
snapshot's expressions
@type array $stackframes List of captured stackframe data.
}
Callback for reporting a snapshot .