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

[DAP] Ensure breakpoints are purged on setBreakpoints #1434

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

robertoaloi
Copy link
Member

@robertoaloi robertoaloi commented May 31, 2023

Description

This is a workaround for a bug in the OTP interpreter, which causes breakpoints to stay active, even after they are removed by the user via the UI, for existing processes.

This makes removing breakpoints a very confusing experience, especially in presence of recursive functions, where the only option left to the user is to interrupt and restart the debugging session.

In this PR:

  • Created a test-case which highlights the issue (the test would time out before the fix)
  • Ensure the breakpoints are purged on a new setBreakpoints call
  • Add helper function to wait for processes to resume regular operation

@robertoaloi robertoaloi force-pushed the correcly-remove-stale-breakpoints branch 2 times, most recently from a79a66a to 31f3b7a Compare May 31, 2023 16:15
@robertoaloi robertoaloi force-pushed the correcly-remove-stale-breakpoints branch from 31f3b7a to b82ef2d Compare May 31, 2023 16:27
@robertoaloi robertoaloi marked this pull request as ready for review May 31, 2023 16:46
@robertoaloi robertoaloi merged commit 7ed288b into main Jun 1, 2023
@robertoaloi robertoaloi deleted the correcly-remove-stale-breakpoints branch June 1, 2023 07:09
zengjinc pushed a commit to zengjinc/erlang_ls that referenced this pull request Jun 12, 2023
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.

1 participant