<div dir="ltr">Hi LLDB,<div><br></div><div>I'm debugging a C++ program and want to do some inspection by calling the toString() method of an object. I'm pretty sure I have the syntax of the command correct, but I get the error shown below:</div>

<div><br></div><div><div>(lldb) expr (string) query.toString()</div><div>error: call to a function 'std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >(int)' that is not present in the target</div>

<div>error: The expression could not be prepared to run in the target</div><div><br></div><div>I interpret this error to mean that lldb is having trouble trying to deal with the lifecycle for the returned std::string (doesn't know how to invoke the string destructor).</div>

<div><br></div><div>Version of lldb:</div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">lldb --version</span><br style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">

<span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">LLDB-179.5</span><br></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><br>

</span></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">Any advice?</span></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px"><br>

</span></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">Best,</span></div><div><span style="color:rgb(38,38,38);font-family:arial,sans-serif;font-size:13px;line-height:16px">Dave</span></div>

<div><br></div>-- <br><div dir="ltr"><p style="color:rgb(0,0,0);font-size:11pt;margin:0px 5pt;font-family:Arial;direction:ltr"><img height="60" src="https://docs.google.com/document/d/14CGI2rcCJHfT7VbeISDKTqJ2lY5k4XIpv1NcFR_fBW0/pubimage?id=14CGI2rcCJHfT7VbeISDKTqJ2lY5k4XIpv1NcFR_fBW0&image_id=13grp_x7y_uXWcAB-nFt_rCJxbQ4XcfwAHHk7" width="206"></p>

<p style="color:rgb(0,0,0);font-size:11pt;margin:0px 5pt;font-family:Arial;direction:ltr;height:11pt"><span style="font-size:10pt;background-color:rgb(255,255,255);font-family:'Courier New';font-weight:bold"></span></p>

<p style="color:rgb(0,0,0);font-size:11pt;margin:0px 5pt;font-family:Arial;direction:ltr"><span style="font-size:10pt;background-color:rgb(255,255,255);font-family:'Courier New';font-weight:bold">{ </span><span style="font-size:10pt;font-family:'Courier New'">name     : </span><span style="font-size:10pt;background-color:rgb(255,255,255);font-family:'Courier New';font-weight:bold">"David  Storch",</span></p>

<p style="color:rgb(0,0,0);font-size:11pt;margin:0px 5pt;font-family:Arial;direction:ltr"><span style="font-size:10pt;background-color:rgb(255,255,255);font-family:'Courier New';font-weight:bold">  </span><span style="font-size:10pt;font-family:'Courier New'">title    : "Software Engineer",</span></p>

<p style="color:rgb(0,0,0);font-size:11pt;margin:0px 5pt;font-family:Arial;direction:ltr"><span style="font-size:10pt;font-family:'Courier New'">  phone    : "</span><span style="color:rgb(51,51,51);font-size:10pt;font-family:'Courier New'">781.859.9395</span><span style="font-size:10pt;font-family:'Courier New'">",</span></p>

<p style="color:rgb(0,0,0);font-size:11pt;margin:0px 5pt;font-family:Arial;direction:ltr"><span style="font-size:10pt;font-family:'Courier New'">  location : "New York, NY" </span><span style="color:rgb(51,51,51);font-size:10pt;background-color:rgb(255,255,255);font-family:'Courier New';font-weight:bold">}</span></p>

</div>
</div></div>