-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 stops in assembler code file #3600
Comments
Is your application an http server that's waiting for a request? |
No it is a experiment that teaches me how to use the |
What line is the breakpoint being created on? Can you give me more explicit replication steps? |
I have opened the main.go file and went to line 30. Then I have started the debugger. This already creates the breakpoint at line 30. Then I have pressed
|
I'm not able to duplicate the behavior you're seeing, but that could be because I'm using a mac. Can you try again after What breakpoint are you expecting it to break on? You're already on line 30 and said there was a breakpoint there and it breaks on that. Is your concern that it's breaking after that? The behavior you're seeing where it breaks in I'm also interested to know what happens if you Also, can you put a breakpoint on line 34? It's ok to still have the first breakpoint at line 30. If that works, then let's try making the breakpoint on line 34 the only breakpoint. |
By the way my oS is CentOS9-stream and I am running this in a WSL context. |
Can you debug successfully with the delve CLI? |
I don't know how this works, but I was able to debug successfully using VSCode using the standard Go extension that as far as I know uses delve too. By the way the vim-go debug output that I have provided initially does not tell you anything, correct? |
That's right. It's useful, but doesn't pinpoint the problem. |
What did you do? (required: The issue will be closed when not provided)
I have opened a golang source code file. The package is main. I am at a statement line. I am starting the debugger using
GoDebugStart . -url=http://somewhere -n=10 -c=20
The arguments that I have passed are application specific and should not matter. A breakpoint seems to be automatically created at the start of the debugger. I am pressing
<F5>
(:GoDebugContinue).What did you expect to happen?
The debugger stops at the given breakpoint.
What happened instead?
When pressing
<F5>
(:GoDebugContinue) the debugger stops in the file /usr/lib/golang/src/runtime/rt0_linux_amd64.sThis is the vim-go debug output
Configuration (MUST fill this out):
vim-go version:
1401b57 - 2023-10-02 11:13:19 -0700 (HEAD -> master, origin/master, origin/HEAD) update CHANGELOG.md for #3587 (Billie Cleek <[email protected]>)
vimrc
you used to reproduce:vimrc
Vim version (first three lines from
:version
):VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 09 2023 00:00:00)
Included patches: 1-2637
Modified by [email protected]
Go version (
go version
):go version go1.20.6 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: