-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debugger fails with could not launch process: stub exited while waiting for connection: exit status 0 on M1 Pro #3059
Comments
This is almost certainly a problem with your computer. You can confirm it by locating the executable of debugserver (it should be |
@aarzilli It returns this
|
You didn't call it correctly, please see my message or the usage message it's printing. |
I ran it from the path of main.go and getting this error
I already added user to the Developer group following this command
|
The second argument needs to be the path to an executable, even better if it's a go executable you built to rule out the case were the problem is with permissions. Also no sudo. |
main.go isn't an executable. |
No, dmg files aren't executable either. An executable is the output file of |
@aarzilli Yea, I updated the answer, getting this as the error now
|
Ok, debugserver is failing on its own, without any interaction with delve. This is a problem with your setup. Closing. |
PS. I noticed this:
|
@aarzilli
and it is waiting for a connection
|
@thidasapankaja did you ever get this working? I am at the same point right now that you left off |
I figured out my issue. #3804 |
Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.
If this is about source listing not showing up (or breakpoints not being
accepted) while running in a container please read our
FAQ
first.
dlv version
)?go version
)?go version go1.18.3 darwin/arm64
run the dlv without any error
could not launch process: stub exited while waiting for connection: exit status 0
Already followed the installation guide and already had xcode-select installed, enabled Developer Mode and added the user to the Developer Group
The text was updated successfully, but these errors were encountered: