erlang-ls / erlang_ls

The Erlang Language Server
https://erlang-ls.github.io/
Apache License 2.0
620 stars 136 forks source link

[DAP] Ensure breakpoints are purged on setBreakpoints #1434

Closed robertoaloi closed 1 year ago

robertoaloi commented 1 year ago

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: