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

debug: handle process exits cleanly #2921

Merged
merged 6 commits into from
Jun 22, 2020
Merged

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Jun 13, 2020

Improve the debugging experience when the process being debugged exits. Previously the debugger would stay active, some unexpected messages would be shown to the user, and a :GoDebugContinue would restart the application.

explain why CancelNext needs to be called
debug: handle process exit cleanly

Quit the debugger when the process being debugged stops.

debug: make error messages more useful

Add context to error messages so that it's easier to understand fron
where they originate.

debug: refactor NextInProgress handling

Extract the NextInProgress handling to its own function for readability.

Fixes #2920

@bhcleek bhcleek added this to the vim-go 1.24 milestone Jun 13, 2020
@bhcleek bhcleek force-pushed the debug/stop-on-exit branch 7 times, most recently from 396a0ba to 8a06e21 Compare June 21, 2020 19:37
Quit the debugger when the process being debugged stops.
Add context to error messages so that it's easier to understand fron
where they originate.
Extract the NextInProgress handling to its own function for readability.
Vim's sign place command may output lines that either begin or end with
Signs. The former seems to be most common, but the latter is possible,
so handle that case.

Fixes fatih#2920
Use sign_getplaced() when it exists instead of `:sign placed`, so that
output of the normal mode command doesn't have to be parsed to get the
signs.
@bhcleek bhcleek merged commit fd63ba6 into fatih:master Jun 22, 2020
@bhcleek bhcleek deleted the debug/stop-on-exit branch June 22, 2020 03:45
bhcleek added a commit that referenced this pull request Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error setting breakpoint on second :GoDebugStart
1 participant