You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Delve are you using (dlv version)?
master
What version of Go are you using? (go version)?
go1.22.5
What operating system and processor architecture are you using?
Linux, AMD Ryzen 9 3900X 12-Core Processor
What did you do?
I tried to access the value of a variable from Starlark, where the variable is set to the value of a named constant of a type derived from an integer type:
package main
import (
"fmt"
)
typeUint32uint32constMyUint32Uint32=42funcmain() {
a:=MyUint32fmt.Println(a)
}
> dlv debug
(dlv) b main.main:2
Breakpoint 1 set at 0x4ae25a for main.main() ./main.go:13
(dlv) c
> [Breakpoint 1] main.main() ./main.go:13 (hits goroutine(1):1 total:1) (PC: 0x4ae25a)
[...]
(dlv) source -
>>> eval(None, "a").Variable
Variable<MyUint32 (42)>
>>> eval(None, "a").Variable.Value
0
What did you expect to see?
eval(None, "a").Variable.Value to print 42
What did you see instead?
It prints 0
The text was updated successfully, but these errors were encountered:
master
go1.22.5
Linux, AMD Ryzen 9 3900X 12-Core Processor
I tried to access the value of a variable from Starlark, where the variable is set to the value of a named constant of a type derived from an integer type:
eval(None, "a").Variable.Value
to print42
It prints
0
The text was updated successfully, but these errors were encountered: