How to create custom view of data in Clion debugger ?

Answered

How to create my own custom view of data in Clion debuger. For example i have own collection like std::vector, i need create a custom view of my custom bmstu::vector

macOS
CLion 2022.2.4 

I googled .natvis aka xml notation view, but not found how to resolve issue

1 comment
Comment actions Permalink

Hello!

The solution would be to create custom pretty printers for LLDB and specify them in .lldbinit. Here is the instruction for Qt renders as an example - https://www.jetbrains.com/help/clion/qt-tutorial.html#debug-renderers.

0

Please sign in to leave a comment.