[Lldb-commits] [lldb] WIP: Stop using replicated variable ids (PR #124232)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 27 16:19:11 PDT 2025


medismailben wrote:

Looking at the logs:
- `TestDAP_variables.py` fails on [line 290](https://github.com/llvm/llvm-project/blob/47f0fb9057c0c3c3d0c294dd608df0702706d990/lldb/test/API/tools/lldb-dap/variables/TestDAP_variables.py#L290). It looks like we call `self.set_local("argc", 123)`. I went looking for this implementation of that helper function. It located in [lldbdap_testcase.py](https://github.com/llvm/llvm-project/blob/main/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py#L352) and calls [dap_server.request_setVariable](https://github.com/llvm/llvm-project/blob/main/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py#L1426). It looks like when calling that function, we didn't pass any id for the variable. May be that's the issue you're having.
- TestDAP_memory.py fails on [line 73](https://github.com/llvm/llvm-project/blob/main/lldb/test/API/tools/lldb-dap/memory/TestDAP_memory.py#L75), which also calls to `dap_server.request_setVariable`.

https://github.com/llvm/llvm-project/pull/124232


More information about the lldb-commits mailing list