How do I evaluate expressions while debugging in VS Code?

For the ones coming here at 2020+, it is now possible to call a function. The syntax is:

call functionToBeCalled(arg1, arg2)

In the question ask for running an assignation, you can also set a variable

call variable = newValue

Source: https://github.com/golang/vscode-go/issues/100

Leave a Comment