-
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
Unable to debug with VSCode or Intellij gogland #902
Comments
If it's random it's possible that the fix is in #876. |
@aarzilli I have checkout the branch from fix #876, I compiled dlv and installed into my gopath. but still same issue. For example this is the output from gogland. I have changed the path to the new dlv (/Users/atali/Development/go/bin/dlv) GOROOT=/usr/local/Cellar/go@1.7/1.7.6/libexec |
Can you send SIGQUIT to the dlv process and paste the stack dump here? |
dump generated with gcore on my mac : https://www.dropbox.com/s/4w95k5ljsttn0lz/dlv-9549-20170628T123947Z?dl=0 |
The core dump is useless unless you also give me the binary. But a |
Actually, never mind, I don't have a way to examine a macOS core dump, you should go with the |
I tried to kill -QUIT or kill -SIGQUIT on Mac OS sierra but no core dump are generated . I try to find how to enable core dump. |
I don't want a core dump, I want a stack dump. |
Is that useful ? |
No, because it doesn't tell me where it's stopped. |
is the backtrace from the macos debugger is useful ? (lldb) bt all
|
Output of |
stat /Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/debugserver |
Can you upload your |
You didn't actually update your dlv binary to the branch I told you. I can tell because:
But on that branch the first instruction of waitForvContStop is at line :581. Furthermore the disassembly of that function on your executable does not contain calls to sendCtrlC. |
@aarzilli you are totally correct ! My bad ! I had the previous package on my gopath and I compiled your branch in another path (outside of gopath). the makefile was compiling the previous package located in gopath. I tested your version and it works perfectly ! Do you know when your patch will be merged to the next version ? |
Glad to hear it works. It should be merged soon. |
@aarzilli Thanks a lot for your time ! |
go-delve#876) * proc: fix interaction of RequestManualStop and conditional breakpoints A conditional breakpoint that is hit but has the condition evaluate to false can block a RequestManualStop from working. If the conditional breakpoint is set on an instruction that is executed very frequently by multiple goroutines (or many conditional breakpoints are set) it could prevent all calls to RequestManualStop from working. This commit fixes the problem by changing proc.Continue to exit unconditionally after a RequestManualStop is called. * proc/gdbserial: fix ContinueOnce getting stuck on macOS Fixes go-delve#902
Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.
What version of Delve are you using (
dlv version
)?Version: 1.0.0-rc.1
What version of Go are you using? (
go version
)?go version go1.8.3 darwin/amd64
What operating system and processor architecture are you using?
MacOs 10.12.5
What did you do?
I try to debug a simple program step by step
What did you expect to see?
I should be able to go next line when nexting while debugging
What did you see instead?
It seems the debugger stucks randomly when I try to debug into vscode or intellij on macos.
The text was updated successfully, but these errors were encountered: