These are chat archives for derekparker/delve

30th
Apr 2018
Alexander Myltsev
@alexander-myltsev
Apr 30 2018 15:41

hi

dlv works fine with debug command.

but it fails in listen mode for GoLand

dlv --listen=localhost:53478 --headless=true --api-version=2 --backend=default exec /private/var/folders/xl/l1jypqm95pnggx2hhgmkzt200000gn/T/___go_build_main_go -- #gosetup
could not launch process: EOF
/usr/local/Cellar/go@1.9/1.9.5/libexec/bin/go build -o /private/var/folders/xl/l1jypqm95pnggx2hhgmkzt200000gn/T/___go_build_main_go -gcflags "-N -l" -a /Users/ycomb/.go_path/src/github.com/gnames/gnfinder/gnfinder/main.go #gosetup
/Users/ycomb/.go_path/bin/dlv --listen=localhost:53856 --headless=true --api-version=2 --backend=native exec /private/var/folders/xl/l1jypqm95pnggx2hhgmkzt200000gn/T/___go_build_main_go -- #gosetup
could not launch process: could not get thread count

I tried of combinations of delve master / v1.0.0 and go 1.9.5 and 1.10.1

how to fix this?

Alessandro Arzilli
@aarzilli
Apr 30 2018 16:47
@alexander-myltsev do not use the native backend
Alexander Myltsev
@alexander-myltsev
Apr 30 2018 16:48
look at first usage. I don’t use it. the error is EOF
Alessandro Arzilli
@aarzilli
Apr 30 2018 17:52
update to the latest version from master, apple broke its debugger
Alexander Myltsev
@alexander-myltsev
Apr 30 2018 19:10
works! thanks!
is --backend=default “fully functional” compared to native?
Alessandro Arzilli
@aarzilli
Apr 30 2018 19:55
yes