Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Thomas Dibble <email@hidden>
- Date: Thu, 13 Nov 2003 15:10:49 -0800
Have you looked into a custom formatter?
Matthew Firlik gave a good summary of where to find information about
custom formatters a few days ago (subject "Customizing variable's
summary):
[I believe a simple expression should do it for you]
You are likely referring to the custom data formatters, a feature in
Xcode which allows developers to customize the information displayed
for variables in the debugger data view. Simple, customized
expressions can be entered directly into the GUI using a simple format
string -- you can find more information on this in the help document
"Viewing Variables and Expressions", which can be found by:
1) Opening Xcode
2) Selecting "Xcode Help" under the "Help" menu
3) In the window that comes up, select the "Debugging" link on the
left-hand side of the "Xcode Help" document
4) From the nested content that appears beneath the "Debugging" link
(after clicking on it) select "Viewing Variables and Expressions"
5) From that page, scroll down to the "Using Custom Data Formatters
to View Variables in the Debugger" section
Or, you can just open the file directly at:
file:////Developer/Applications/Xcode.app/Contents/Resources/
English.lproj/Xcode_Help/Debugging/chapter_8_section_9.html
For types which require more complex processing, a mechanism for
writing a plugin bundle to generate descriptions for variables has
been provided. For developers interested in exploring this feature,
some interim documentation is located in the file
'DataFormatterPlugin.h', which resides inside the Xcode application
bundle
(/Developer/Applications/Xcode.app/Contents/PlugIns/
GDBMIDebugging.pbplugin/Contents/Headers/DataFormatterPlugin.h).
Hope that helps.
- matthew
---- Tom Dibble
On Thursday, November 13, 2003, at 09:53 AM, Mike Lazear wrote:
Thanks for the suggestion. That idea will come in handy. In this
particular case what I have is a C string so
p stg (or print stg)
works fine. It just seems totally bizarre that the debugger doesn't
support viewing string variables naturally as strings. It is not
exactly like strings are a new concept. I have 10-20 strings that I'm
trying to monitor and having to type in a print command every time I
step thru the code seems silly. XCode has a lot of work to do in
the debugging area. Can one of the Apple folks here confirm this
issue.
Thanks,
Mike
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >(no subject) (From: Mike Lazear <email@hidden>) |