Skip to content
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

dlv display hits goroutine but don't stop at the breakpoint #2695

Closed
crazypaul123 opened this issue Sep 10, 2021 · 4 comments
Closed

dlv display hits goroutine but don't stop at the breakpoint #2695

crazypaul123 opened this issue Sep 10, 2021 · 4 comments

Comments

@crazypaul123
Copy link

Please answer the following before submitting your issue:

Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.

  1. What version of Delve are you using (dlv version)?
    Delve Debugger
    Version: 1.4.0
    Build: $Id: 67422e6f7148fa1efa0eac1423ab5594b223d93b $
  2. What version of Go are you using? (go version)?
    Go Info:
    go version go1.14.14 linux/amd64
  3. What operating system and processor architecture are you using?
    uname -a
    Linux push-press-test06.py 3.10.0-514.16.1.el7.x86_64 Add doc in readme for continue #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  4. What did you do?
    Breakpoint 1 set at Example.go:322
    cond 1 var=="111"
  5. What did you expect to see?
    the program stop at the goroutine
  6. What did you see instead?
    most of times ,dlv display (hits goroutine(717):1 total:2) (PC: 0xba6e2d) but not stop at the goroutine,only a few times stop at the goroutine; It seems to be a random event
@aarzilli
Copy link
Member

Do you have a way to reproduce this or a transcript of this happening, possibly with --log --log-output=rpc?

@crazypaul123
Copy link
Author

Do you have a way to reproduce this or a transcript of this happening, possibly with --log --log-output=rpc?

881631286602_ pic_hd
Like the red circle in the picture, dlv just display hits goroutine(4025) but not stop . I didn't input continue but dlv continue to exec the program. This situation shows lots of times in the morning, but only once in the evening, I don't know why

@aarzilli
Copy link
Member

I think you just pressed return twice, delve will repeat the last command if you just press return. Your return key may be bouncy.

@crazypaul123
Copy link
Author

I think you just pressed return twice, delve will repeat the last command if you just press return. Your return key may be bouncy.

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants