I'm on an M1 Mac (ARM64 chip) and still unable to invoke functions via the debugger in VSCode which is using the DLV backend.
Debug Console
call test()
Unable to evaluate expression: could not find symbol value for test
test()
Unable to evaluate expression: function calls not allowed without using 'call'
I'm using the latest DLV:
~ ❯ dlv version
Delve Debugger
Version: 1.20.1
Build: $Id: 96e65b6c615845d42e0e31d903f6475b0e4ece6e
What am I missing?
If your
test
function is in a*_test.go
file, it may not actually exist unless one of yourTest*
functions calls it -- I found this to be true for my code.It seems like
go
may be stripping out functions that aren't called by test code.