You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the program to debug is not executable on the current GOHOSTOS/GOHOSTARCH
so dlv cannot launch, I'd like to see more helpful message than the current message.
What version of Delve are you using (dlv version)? 1.4.0
What version of Go are you using? (go version)? go1.14.x
What operating system and processor architecture are you using? darwin/amd64
What did you do?
Basically, GOOS=linux dlv debug on mac OS. Accidentally cross-compiled. :-)
Similar issue when dlv exec when the target binary isn't executable.
What did you expect to see?
An error message indicating the target binary is not executable.
For example, go run command outputs exec format error.
Attempt to run such incompatible binaries directly outputs cannot execute binary file.
What did you see instead? could not launch process: stub exited while waiting for connection: exit status 0
which is vague.
Or, is this (incompatible or corrupted executable) the only case dlv would fail to launch the process with the error message? (If so, maybe rephrase the error message?)
The text was updated successfully, but these errors were encountered:
This is a feature request (based on microsoft/vscode-go#2696.
If the program to debug is not executable on the current
GOHOSTOS/GOHOSTARCH
so
dlv
cannot launch, I'd like to see more helpful message than the current message.What version of Delve are you using (
dlv version
)? 1.4.0What version of Go are you using? (
go version
)? go1.14.xWhat operating system and processor architecture are you using? darwin/amd64
What did you do?
Basically,
GOOS=linux dlv debug
on mac OS. Accidentally cross-compiled. :-)Similar issue when
dlv exec
when the target binary isn't executable.What did you expect to see?
An error message indicating the target binary is not executable.
For example,
go run
command outputsexec format error
.Attempt to run such incompatible binaries directly outputs
cannot execute binary file
.What did you see instead?
could not launch process: stub exited while waiting for connection: exit status 0
which is vague.
Or, is this (incompatible or corrupted executable) the only case dlv would fail to launch the process with the error message? (If so, maybe rephrase the error message?)
The text was updated successfully, but these errors were encountered: