delve icon indicating copy to clipboard operation
delve copied to clipboard

Builtin calls cannot be run via call command

Open dlsniper opened this issue 6 years ago • 1 comments
trafficstars

  1. What version of Delve are you using (dlv version)? 72fae3c9c11da101bd40d76c125970acb3d3ec4f
  2. What version of Go are you using? (go version)? Go 1.13 (ac8dbe7747971007d58eb39e2e7e615cf9f04493)
  3. What operating system and processor architecture are you using? Win 10
  4. What did you do? Run the following application with a breakpoint on line 6
package main

func main() {
	colors := map[string]string{"key":"value"}
	color, ok := colors["ke"]
	if !ok {
		// handle missing map key case here
	}
	println(color)
}

Invoke the following delve command:

call println(color)
  1. What did you expect to see? I would expect the debugger show the result of the function call and print it on the output
  2. What did you see instead?
Command failed: could not find symbol value for println

I tried call builtin.println but same result. It seems no builtin functions are available, correct?

dlsniper avatar Jun 07 '19 10:06 dlsniper

cap, len, complex, imag and real are the only ones we implemented so far

aarzilli avatar Jun 07 '19 12:06 aarzilli