-
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.8.5] Can't seem to be able to debug a program #160
Comments
+1 |
Seems related to #159. Have you signed the binary as per: https://github.com/derekparker/delve/wiki/Building#os-x ? |
Does it mean enter |
@Henry-Zhuang yes, you must codesign the dlv binary before using it on OSX. |
|
Looks like
|
@derekparker Yes, I enter It succeed and run normally. |
Hmmm, can you send a gist of hello.go? Also
|
@derekparker Thank you. It works. It must run in the only |
I'm on 10.9.5, I have followed all of the instructions and I'm still receiving this error. Looking for ideas. I signed dlv successfully but it is still giving me the same issue. Works fine on my later version mac at home, but at work (I work for Nordstrom corporate) we are locked on OS 10.9.5 I receive the same error when I run as root as well as sudo.
What else can I try? |
If you haven't already checked, make sure you don't have multiple versions of dlv installed, "which -a" is very useful, e.g.:
|
x74f@M00973121: |
Is " /usr/local/go/bin/dlv" signed also? Its possible that when you execute dlv, " /usr/local/go/bin/dlv" gets called before your signed version (if it isn't already signed the same as "/usr/local/bin/dlv"). |
Sorry, there is only one, that was part of the other one x74f@M00973121: |
sudo GOPATH=/Users/x74f/goapi dlv debug |
Reading https://github.com/derekparker/delve/issues/474 now |
I uninstalled all versions of delve, and deleted the certificate starting over with a HomeBrew installation. Now I get the could not launch process: invalid magic number in record at byte 0x0 error consistently. |
Another question, are you compiling native Mac OS X executables or cross compiling for a different architecture? |
Native only. |
I am able to run dlv exec to get the (dlv) prompt, I just can't run dlv debug This all started because I'm trying to get Delve to work with VSCode (a setup that works on my home machine) This is the output from VSCode: This is with the homebrew installation of Delve, not a manual one. go version go1.6.2 darwin/amd64 I believe the issue may be multiple versions of Go installed (manual vs. homebrew) since the homebrew installation is going to install into the homebrew Go etc. I'm working on getting the manual out of there now. |
Found it.. package main I'm good to go. Thank you! |
…lve#160) * proto file changes * integration test * implemented service method createSenders * implemented the db sql for createSenders * integration test assertdb * db handles empty senders and uses db Sender struct * can add multiple senders at once (sql statement construction problem)
Running a process
The text was updated successfully, but these errors were encountered: