All notes
Dlv

Install



# debugserver or lldb-server needed: install XCode's command line tools or lldb-server
xcode-select --install
# In china, it's very slow, but you can manually download the "Command Line Tools" and install from https://developer.apple.com/download/more/
# Reference: https://blog.csdn.net/lucky9322/article/details/79036877

go get -u github.com/go-delve/delve/cmd/dlv

Commands



# Build in non-optimized version and debug
dlv debug