DataFormatterPlugin.h
DataFormatterPlugin.h
- Subject: DataFormatterPlugin.h
- From: Salman Khilji <email@hidden>
- Date: Fri, 02 Mar 2012 21:32:44 -0800
I am trying to write a custom data formatter as explained in:
http://pooh.poly.asu.edu/Cst194/Resources/Docs/Xcode_Debugging.pdf
For those who don't know, you can supposedly write a C plugin that allows formatter data viewers for complex custom types. For example, std::string, QString, or any of your own data types.
I included the following file in my source code using Xcode 4.3 on 10.7.3:
#import "/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/Headers/DataFormatterPlugin.h"
I followed the instructions as given in the PDF (and made the necessary changes for Xcode 4.3)
When using with LLDB, the formatter summary does not appear at all in the debugger variable window. Its blank.
When using GDB, it says, "Summary Unavailable!".
When I right-click on a variable in the window and choose "Edit Summary Format...", Xcode opens a box and displays:
{(char *)format_Temperature((Temperature) $VAR, (int) $ID)}:s
This is precisely the SummaryString I have specified in the CustomDavaViews.plist file. So I know that Xcode is reading the plugin that I installed in: /Applications/Xcode.app/Contents/Developer/Library/Xcode/CustomDataViews
Is this another one of those useful features that Apple axed?
This feature has never worked in Xcode 4.x. Xcode already ships with CarbonDataFormatters.bundle so it must still be supported but the details may have changed.
Salman
_______________________________________________
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