delve
delve copied to clipboard
Builtin calls cannot be run via call command
trafficstars
- What version of Delve are you using (
dlv version)? 72fae3c9c11da101bd40d76c125970acb3d3ec4f - What version of Go are you using? (
go version)? Go 1.13 (ac8dbe7747971007d58eb39e2e7e615cf9f04493) - What operating system and processor architecture are you using? Win 10
- 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)
- What did you expect to see? I would expect the debugger show the result of the function call and print it on the output
- 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?
cap, len, complex, imag and real are the only ones we implemented so far