ObjectiveC types in QtCreator LLDB debugger
-
Hello
I am trying to debug ObjectiveC code with the latest QtCreator using LLDB.
I see that the debugger "Locals" window displays only "Values" of simple C types like int or double. But values of simple ObjectiveC types like NSString or NSNumber cannot be viewed in the debugger window - I see something like "@2fe3452232" instead.
What am I doing wrong? How to restore that LLDB functionality? -
I couldn't find any reference to
NSStringorNSNumberat https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/share/qtcreator/debuggerI would suggest opening a bug report at https://bugreports.qt.io/secure/CreateIssue.jspa?pid=10512
Alternatively you can configure a LLDB-DAP debugger for your Kit. This would bypass the Qt dumpers and use only the dumpers from LLDB, which might include the Objective C types.
See https://www.qt.io/blog/qt-creator-14-cmake-update on how to register a debugger via CMake Presets. Currently that's the only way to enable a LLDB-DAP debugger (debugger type
1024).