Process 1109638 stopped * thread #1, name = 'string3', stop reason = step over frame #0: 0x00000000004011e1 string3`main at string3.C:5:3 2 int main() { 3 std::string a="hello"; 4 std::string b=a; -> 5 return 0; 6 } (lldb) p a (std::string) $0 = "hello" (lldb) p b (std::string) $1 = "hello" (lldb) expression -R -- a (std::string) $2 = { _M_dataplus = { _M_p = 0x00007fffffffcf08 } _M_string_length = 5 = { _M_local_buf = { [0] = 'h' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' [5] = '\0' [6] = '\0' [7] = '\0' [8] = '\x10' [9] = '\xd0' [10] = '\xff' [11] = '\xff' [12] = '\xff' [13] = '\x7f' [14] = '\0' [15] = '\0' } _M_allocated_capacity = 478560413032 } } (lldb) expression -R -- b (std::string) $3 = { _M_dataplus = { _M_p = 0x00007fffffffced0 } _M_string_length = 5 = { _M_local_buf = { [0] = 'h' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' [5] = '\0' [6] = '\0' [7] = '\0' [8] = '\0' [9] = '\x1c' [10] = '\x01' [11] = '\0' [12] = '\0' [13] = '\0' [14] = '\0' [15] = '\0' } _M_allocated_capacity = 478560413032 } } (lldb) _