In interlliJ IDE, I can't launch the debug mode, the error just like title said
dlv version)?go version)?Run it with --log --log-output=lldbout,gdbwire so that we can figure out why.
I can debug by delve in command line, but not in IntelliJ IDEA, so where to add above configuration when launch debug in IntelliJ?
IDEA will tell you what it runs in the section at the beginning named "go setup. Expand it and you'll see the command line used. Then you can change as needed.
I can debug by delve in command line, but not in IntelliJ IDEA
Then you are probably hit by an old bug and you should update the copy of dlv that IDEA uses. I imagine it's the bug with the 'g' packet that newer versions of delve work around.
It is strange that the debug mode is out of work suddenly without any change of IDEA on version and configuration
You probably updated XCode.
If this is the root cause, how can I fix it? which is the correct version of XCode, I can double check it.
If you tell me the plugin version I can check if it's the latest or not. We keep track of delve progress/bug fixes and ship the latest we can whenever we release the IDE/plugin.

Is this info enough for you to dig the rc? @dlsniper
@yangliCypressTest what version of XCode do you use?
7.3.1
Latest stable is 9.4.1, please upgrade to that. Also, this is pretty similar to https://youtrack.jetbrains.com/issue/GO-4733#focus=streamItem-27-3004631-0-0 so I would recommend continuing the discussion there.
The versions of Xcode and OS are managed and controlled by IT, and I also confirmed with my colleague, we have the same version of OS, Xcode, golang, and IntelliJ IDEA, and debug mode can be launched successfully, and I didn't upgrade any of softwares before my debug env out of work.
OSX 10.13.6 Xcode 9.4.1
With $dlv debug, I ran into the same problem. But I can launch the debug mode, if change to the Native backend.
$ dlv debug --backend native
In case this helps someone else, I found that having a missing/botched 127.0.0.1 localhost entry in /etc/hosts will also cause this error.
Likely not a problem with delve.
In case this helps someone else, I found that having a missing/botched
127.0.0.1 localhostentry in /etc/hosts will also cause this error.
Just removed some hosts add the end of the line commented using # and it works, many thanks !
Most helpful comment
In case this helps someone else, I found that having a missing/botched
127.0.0.1 localhostentry in /etc/hosts will also cause this error.