Aug 30, 2017

Using Delve with vscode

having a debugger with your editor is a nice things to have so here's how you can install delve with vscode. At this time there are couple of issues with delve and MacOS. but here's the way you can get it to work

brew install go-delve/delve/delve --HEAD

if you get the following error then you have to manually install the certificate

Last 15 lines from /Users/ali/Library/Logs/Homebrew/delve/02.sudo:

2017-08-30 09:26:30 -0400


sudo
security
add-trusted-cert
-d
-r
trustRoot
-k
/Library/Keychains/System.keychain
dlv-cert.cer

to install the certificate just go to the following folder

cd /Users/ali/Library/Caches/Homebrew/delve-1.0.0-rc.1/scripts

./gencert.sh

brew unlink delve && brew install go-delve/delve/delve --HEAD

now you can do things like this

vscode - debug