<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/115216>115216</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [lldb] resolving optional crashes lldb(-dap) (clang/windows/msvc)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          BjornSAIM
      </td>
    </tr>
</table>

<pre>
    When debugging from vscode/cursor using lldb-dap. the debugger will crash when trying to resolve an std::optional. switching the std::optional out with an different implementation (like Optional26 by beman) fixes the problem.

link to a minimal repro: https://github.com/BjornSAIM/lldb-optional-crash
just set a breakpoint anywhere after the assignment to the optional.

clang/lldb/... are all on 19.1.1
Visual Studio 2022 version 17.9
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Us2OnDwQfBpzaQ3CPcyPDxxmtUL6Dp9yWCk527gB7xob2WbIvH1kht1EipQLSFBdXVVdMkYzOKKGnV7Y6bWQSxp9aF7efXBvt__-L5TXj-bHSA40qWUYjBugD36Ce-y8JoZtt4ToAywx_7JWq4OWcwlppH2EAqzGWuiCjCOsmSuFR0YnD4Git3cC6SAmzY43drz5ORnvpC0hriZ14wYd6W8A-CXBatKYx7XpewrkEphptjSRSzLDgOHVmg-Cb_sUnkE9QNEkHUMBvflJceOfg1eWppJVr6y6PZ_WuI-sU8JknJmkhUBz8Ox4gzGlOWZB2DJsB5PGRZWdnxi2X_kxbLdIPhUfthCe1O9LTBApgQQVSH7M3rgE0j3WkQKB7BOFTdfzSNlQVpK_fCX0p9TOSjfsCxm2ZVmCzDzWgnfARclL_kR-N3GRFt7Soo0HrBDhTiHmsPilFIVujlochSyo4ZdjJfBa46UYm3PHKyXUueNd32lCyZW4aHFSWuiTONaFabDCmvPqjBwv1aUUXIu-xlp3hFoLyeqKJmlsae19Kn0YChPjQg3nJ-TnwkpFNm5lRNz9YO5laPLAQS1DZHVlTUzxN0UyyW4N3pyfXvdS5dp8NWXLnSI8w7nmjubjM7x-xrYap_0aGbZTvHcMRbEE2_zjyHn__jrMwb9Tlxi2m5_Mslu6N_grAAD__5siHxk">