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

    <tr>
        <th>Summary</th>
        <td>
            lldb: error: summary string parsing error
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    So I'm running windows with llvm and msvc. When I compile my program with clang++ and try to debug it with lldb and inspect a string variable I get "error: summary string parsing error".

```#include <iostream>
#include <string>

int main() {
    std::string a = "Lorem ipsum\n";
    std::cout << a;
}
```

```Process 8652 stopped
* thread #1, stop reason = step over
    frame #0: 0x00007ff671e1102a main.exe`main at main.cpp:245
   3  int main()
   4  {
   5          std::string a = "Lorem ipsum\n";
-> 6          std::cout << a;
   7  }
(lldb) v a
(std::basic_string<char,std::char_traits<char>,std::allocator<char> >) a = error: summary string parsing error
```

I already tried adding -fstandalone-debug and -O0 to my compile flags but it still didn't work. When doing v --raw the guts of the string are present also fields like _Ptr, _Alias, _Buf, _Mypair. When I type type summary info a it gives me this summary applied to 
`(std::basic_string<char,std::char_traits<char>,std::allocator<char> >) a is: ${var._M_dataplus._M_p} (hide value)`

info for the tools I use

```C:\Users\Me>clang++ --version
clang version 16.0.6
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin

C:\Users\Me>lldb --version
lldb version 16.0.6
```

I originally posted this question on stackoverflow but I was suggested to post the question here [https://stackoverflow.com/questions/76583480/lldb-error-summary-string-parsing-error](url)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VkuPqzgT_TXOpkRETHhkkUUeHaml2_pa-uaxjCq4AM81mLFN0vn3IxuS7lzlSlezmFYLEPXwqVOniqC1su6I1izdsnQ_w8E12qzxDZ1r6PI-O2lxXf9fwyvjeQtm6DrZ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