What I want to accomplish is to debug C++ code in CLion hassle-free, just like I would on Linux. I am going to be using the following code for illustration further on:
set<int> time;
time.insert(1);
size_t qq = time.size();
I attach screenshots of me using the Bundled LLDB and the GDB debuggers (attachments lldb
and gdb
respectively).
As Apple dropped support of GDB, I had to install version 8.0.1, codesign it, and so on to get it working. I am expecting the behavior I get on my Linxu machine (with bundled GDB) (attachment expected
respectively). I really want to be able to see the size of my set!
The issue is present both with LLDB and GDB on macOS as can be seen in attachments lldb
and gdb
(though there are no issues on Linux). I decided to try getting GDB for macOS just because the LLDB debugger wasn't working as expected and I was hoping it to be a debugger-specific issue.