How to wait for user input? #31
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
NeonXP/nvim-dap-go#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm learning go and I write simple standard i/o programs. Here's some code:
I use lunarvim, which has nvim-dap and nvim-dap-ui preconfigured. I have installed and configured nvim-dap-go to add golang debugger configuration. If I place a breakpoint on a line marked with "*" and start debugging, the debugger skips over the
fmt.Fscanf()and goes somewhere deep into golang's source code. It does not wait for user input and I assume the reason is it doesn't have any terminal to take user input from. How can I configure my settings so that the debugger would wait for user input?You can run the program in the terminal and attach (option 4) to the running process selecting the correct pid.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.