Re: LLDB variable visualizer for Qt Classes
Re: LLDB variable visualizer for Qt Classes
- Subject: Re: LLDB variable visualizer for Qt Classes
- From: Jim Ingham <email@hidden>
- Date: Thu, 03 Sep 2015 11:35:40 -0700
This page:
http://lldb.llvm.org/varformats.html
describes how to write data formatters that can present complex data types. For things like QVector & QMap, you're going to need to write some Python "Synthetic Child" providers. There are some examples of how to do this here:
http://llvm.org/svn/llvm-project/lldb/trunk/examples/synthetic/
Once you have these written, it is easy to distribute the python implementation, and then people would just need to "command script import" the python file to add the formatters to their debug session.
One added benefit for doing it this way is that the Xcode Locals window automatically picks up the "synthetic children" and displays them. That's how the STL types and all the NSArray/NSDictionary etc types are presented in Xcode.
Jim
> On Sep 3, 2015, at 7:33 AM, Michael Jackson <email@hidden> wrote:
>
> Does anyone know of or even has some code or plugin or something for Xcode that can allow LLDB to visualize Qt based classes (www.qt.io for those that do not know of Qt). The best I can figure out is QString but we need to be able to "see" QVector, QMap, QSet, QDateTime and things like that. Qt's own IDE has a bunch of Python code for doing this but their integration with LLDB simply does not work and we have given up waiting for the developers to fix it. We love the speed of Xcode and the debugging experience seems really great for C++ STL types. We just are having issues trying to properly "see" the value of Qt native types. Any help is greatly appreciated.
>
> Is it possible to write a "Plugin" for Xcode that we can distribute to our developers that can visualize the QtNative types?
>
> If this belongs on anther mailing list just let me know and I'll move the conversation there.
>
> --
> Mike Jackson
> BlueQuartz Software
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden