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

Use signs to keep track of breakpoints #2126

Merged
merged 1 commit into from
Jan 14, 2019

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Jan 13, 2019

Use signs to keep track of breakpoints

Signs already get updated correct when adding/removing lines, so use
information from :sign place instead of keeping track of our own list
of breakpoints. This also makes sure that what the user sees always
matches with that Vim/Delve thinks should happen.

Stop removing breakpoints when debugging stops.

Fixes #1688

This was originally done by @Carpetsmoker in #1707, but was incomplete when #1707 was closed.

Signs already get updated correct when adding/removing lines, so use
information from `:sign place` instead of keeping track of our own list
of breakpoints. This also makes sure that what the user sees always
matches with that Vim/Delve thinks should happen.

Stop removing breakpoints when debugging stops.

Fixes fatih#1688
@bhcleek bhcleek removed the wip label Jan 13, 2019
@bhcleek bhcleek merged commit dadf61d into fatih:master Jan 14, 2019
@bhcleek bhcleek deleted the signs-are-breakpoints branch January 14, 2019 03:48
bhcleek added a commit that referenced this pull request Jan 14, 2019
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.

Breakpoints are kept on the same line when lines are added removed
2 participants