<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/120578>120578</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lldb-dap] Trying to temporarily disable the function breakpoint deletes it entirely
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
HolyBlackCat
</td>
</tr>
</table>
<pre>
Not sure if it's the issue with lldb-dap itself or the VSCode plugin.
When I create a function breakpoint and try to temporarily disable it (in VSCode, by unchecking the checkbox to the left of it), the breakpoint disappears entirely. This is unlike source code breakpoints, which can be disabled and reenabled later.
There's a separate button on the right for deleting a breakpoint. Only that should delete the breakpoint, not the checkbox.
Testing this on Linux, with LLVM 19.
How to repro:
1. Start debugging. Navigate to the breakpoints list.
2. Press `+` and type something (I tried `dlopen`).
3. Press the checkbox to the left of the newly added breakpoint.
4. I expected only the checkbox to become unticked, but instead the checkpoint itself disappears from the list.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8VMFu4zYQ_RrqMlhBoizHOuiQZGFsgHRbYIPtmSJHImuaFMhhHP19QclGvMWiJ5vEzJv3HudJxGgmh9iz9om1XwuRSPvQf_N2ebJCnp4FFYNXS__dE8QUEMwIhhh_iEAawcSYEC6GNFirhi9KzGAooh3Bh7Xi549nrxBmmybjSlY9surxb40OXkAGFIQgYExOkvEOhoDiNHvjCIRTQGEB8kB4nn0QwdgFlIlisAiGgPGDcVd8xp9hWCA5qVGejJvW2eth8B8riEawOBL4TUCXW_Ll3cwMPs8oQgR0ZALapYQ3bSKYCMlZc0KIPgWJILOoz9aY0S7aSA1SOBjwRlStQgKi205WEIarDW8aA65WCog4i5DdGBKRd-DdSi6YSROMPoBCi5SFibuxJfzp7AKkBUHUPlm11eF_lGV2ztMvptxIYKTNLxPz1Ffj0seqJj_q6-vPP6DurrXf_CVbGXAOnjX5pi7hB4lAoHBI02TcVMJ38W6mLOXq-p1LYE2kDMZL-CtgjMD2FeNPbF9tD77M2eEzks6cGD-8AAWDKtcp62d0a8NKqLlh_N9T5_8OL3YBoRSqe-9Y9bgr4QXwY0ZJqMBvXv4KNqD0Z4TkyMgTqnXREoFxkVCoz_Jtg667f7dIY_DnjVGWXqi-UV3TiQL7-qHZ7eu2a6tC9yj3h4d9I4QQko9do2RbI9_LsTk0ahxVYXpe8V3N665udm1blZXAVtVSiF1XH8a2Y7sKz8LY0tr3c-nDVKzh7GtetQ-HwooBbVxzzrnDyxZdxnmOfehz05chTZHtqsw0fsKQIbt-IG4JZ-1XeAvLujW_T2fW-7tQb8sZc3pvAStSsL0mmmPeKH5k_DgZ0mkopT8zfsw0rj9f5uD_QUmMH1fykfHjVd17z_8NAAD__7RRo4s">