#3174·delve

Unable to evaluate expression: cannot use b.String as argument b in function strings.(*Builder).String: stack object passed to escaping pointer: b

Author: 1MarkCreated Oct 25, 2022Updated Jun 5, 2025
Labelsarea/prockind/enhancementkind/upstream

Unable to evaluate expression: cannot use b.String as argument b in function strings.(*Builder).String: stack object passed to escaping pointer: b

image

  1. What version of Delve are you using (dlv version)? 1.9.1
  2. What version of Go are you using? (go version)? 1.19.2
  3. What operating system and processor architecture are you using?
goos: linux
goarch: amd64
pkg: iteration
cpu: Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz
  1. What did you do? Ran call b.String() or call b.Len()
  2. What did you expect to see? the value returned
  3. What did you see instead? Unable to evaluate expression: cannot use b.String as argument b in function strings.(*Builder).String: stack object passed to escaping pointer: b