-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[OSX 10.10.3] Can't seem to be able to debug a program or attach to an existing one #159
Comments
What OS are you running? I was able to build and run through Delve with the following commands:
|
@keltia I imagine some flavor of FreeBSD? |
Nope, unless you consider OS X to be one (which it is in a way ok). I'm running OS X 10.10.3 as indicated in the subject line :) |
@keltia ah, sorry... I'm still waiting on coffee to kick in ;). I'm running the same system and I was able to pass along the path to Delve. I can attempt attaching to a running process and see if that makes any difference. |
|
@keltia have you gone through the process of code signing the |
Yes, created a fake self-signed root cert and signed. I could also have used my own certificate but didn't thought of that. |
I am unable to reproduce this issue, I was able to attach to the binary by passing along the path. Have you been able to use Delve successfully on your machine before? Could you try If it does not work with a simple test program than I honestly suspect it is an issue with the cert. |
Closing as related to #134. |
Thanks for writing this great piece of software! Just compiled it on OSX 10.11 following all the required steps. I have the same issue when launching a debug session: $ dlv debug main.go The way I was able to resolve this is by running the command as sudo. $ sudo dlv debug main.go |
@ObviousDesign thanks for checking it out! The |
Hi @derekparker, I was not able to kill the |
I had the same issue and it was related to taskgated. I just restarted and everything worked. |
FWIF I had similar issue today: "sudo dlv exec ./blah" worked fine, but "dlv exec ./blah" would print the dreaded "could not launch process: could not fork/exec". I double checked that the certificate was configured properly and that dlv was properly signed. Restarting taskgated did not help in my case. What helped was - surprisingly - starting XCode. Apparently the first time it starts, it installs some debugging support tools, which seems to allow dlv to run as regular user. |
Make sure each time you try the code sign, run |
I have same problem that I get error below except root user. OS: OSX Yosemite 10.10.4 In addition, after renamed these files, I am not able to run codesign. [root]$ codesign -s "dlv-cert" /Users/murotanimari/work/bin/dlv |
Running a process then attaching:
The process to be attached is:
trying to run the process through dlv:
Code is at https://github.com/keltia/flightaware-go/
The text was updated successfully, but these errors were encountered: