service/debugger: fix comment on EvalVariableInScope (#3225)

This commit is contained in:
Andrei Matei 2022-12-20 13:06:54 -05:00 committed by GitHub
parent 00df758d57
commit 983624c484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1561,8 +1561,8 @@ func (d *Debugger) Function(goid int64, frame, deferredCall int, cfg proc.LoadCo
return s.Fn, nil
}
// EvalVariableInScope will attempt to evaluate the variable represented by 'symbol'
// in the scope provided.
// EvalVariableInScope will attempt to evaluate the 'expr' in the scope
// corresponding to the given 'frame' on the goroutine identified by 'goid'.
func (d *Debugger) EvalVariableInScope(goid int64, frame, deferredCall int, expr string, cfg proc.LoadConfig) (*proc.Variable, error) {
d.targetMutex.Lock()
defer d.targetMutex.Unlock()