When I am debugging Go Lang code in visual studio code the below error message occured:
2018/04/03 18:19:32 server.go:73: Using API v1
2018/04/03 18:19:32 debugger.go:98: launching process with args: [$GOPATH/src/about/debug]
could not launch process: EOF
Process exiting with code: 1
I had the same thing. The latest XCode update breaks something in the debugger api. (I suspect it's just a change in
debugserver
's command-line-flags.)For now, the best solution I know of is to uninstall XCode or XCode Command Line tools and install Command Line Tools 9.2 for MacOS High Sierra or for MacOs Sierra.
Install, and don't upgrade XCode until there's a fix, either in XCode or Delve.
I tried below scenario and It worked..