<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/147105>147105</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lldb-dap] Incorrect scopes processing in case of multiple frames
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
DrSergei
</td>
</tr>
</table>
<pre>
I found problem with `DataBreakpointInfo` request when user change selected frame a lot. VSCode doesn’t send repeated `Scopes` requests for a frame, so the frame from the last `Scopes` request is selected even after changing frames in the UI. This causes problems with `DataBreakpointInfo` requests because lldb-dap cannot find variables in this frame. I think the solution is to add frameId to scope's variables reference, allowing scopes from different frames to be distinguished.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMkkGPozgQhX-NuZQaGQcCHDh0dzZSzr27d2MX4GljM64i0fz7ESRR92EOc0IlXK_e-_Q0kRsDYieqN1GdMr3yFFN3Sh-YRnRZH-2v7gJDXIOFJcXe4ww3xxOIozxp1m8J9ecSXeBLGKI4Skj4c0ViuE0YYCVMYCYdRgRCj4bRwpD0jKDBR87h_4_3aBFsRAriHyUaKdqWgTBYSLig3jbEUX6YuCB9O0AwxAT6ribUO1AEnvChPqQ476PXxH_cB0dflvCKAfTAT7cujHchAhd2nf8uOfw7OQKjV0J6wqC_o0HQ474I3tv-xeoFjA4hMgwuWLjq5HTvn9cc3Y_ncNmm8Lk7oOhXdjFsxjmCtg-SFwvbTFtAoWr6ppZwwITB7Hy09_G2Bdtf0h2RdcP-hJ9xOUKPYB2xC-PqaEKbC_ma2e5g20OrM-yKuiqOVVMe2mzqZNMe1VAeVFW3TVM0jamkKnRb2sIYVVeZ65RUlaxlWbRlXbR5U2trbFVUVdP0sjSilDhr53Pvr3Me05g5ohW7oqwLWWVe9-hpL6hSAW-w_xVKbX1N3bb00q8jiVJ6R0xfMuzY781-MhfVCS7BxJTQ8BPDkqJBog2MC2A0IcQB5tWzW_yjTpStyXcT80Li8CrUWajz6Hha-9zEWajzdvPxeVlS_IGGhTrvTkmo8yPKtVO_AwAA___Byysj">