Delve: Couldn't start listener

Created on 22 May 2018  路  2Comments  路  Source: go-delve/delve

  1. What version of Delve are you using (dlv version)?
Delve Debugger
Version: 1.0.0
Build: $Id: c98a142125d0b17bb11ec0513bde346229b5f533 $
  1. What version of Go are you using? (go version)?
go version go1.10.2 darwin/amd64

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/nzlov/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/nzlov/workspace/go"
GORACE=""
GOROOT="/Users/nzlov/program/go"
GOTMPDIR=""
GOTOOLDIR="/Users/nzlov/program/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/_9/6616bz990gb21ds_kw9tv1x40000gn/T/go-build520919868=/tmp/go-build -gno-record-gcc-switches -fno-common"
  1. What operating system and processor architecture are you using?
Macos 10.13.4
xcode-select version 2349.

lldb-902.0.79.2
  Swift-4.1

Static IP
DNS 114.114.114.114
  1. What did you do?
dlv debug main.go
  1. What did you expect to see?

  1. What did you see instead?
couldn't start listener: listen tcp: lookup localhost: no such host
kinneeds more info

Most helpful comment

@aarzilli Thanks. This is my problem, there is no localhost in the hosts

All 2 comments

I think there's something wrong with your configuration. All we are doing is net.Listen("tcp", "localhost:0").

@aarzilli Thanks. This is my problem, there is no localhost in the hosts

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goen picture goen  路  5Comments

christianwoehrle picture christianwoehrle  路  5Comments

sub-mod picture sub-mod  路  6Comments

delaneyj picture delaneyj  路  4Comments

wusendong picture wusendong  路  5Comments