• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Customizing variable's summary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customizing variable's summary


  • Subject: Re: Customizing variable's summary
  • From: Randy Croucher <email@hidden>
  • Date: Tue, 11 Nov 2003 08:33:50 -0800

Thank you very much, I've been playing with it this morning. Looks kind of cool. I will experiment with writing a bundle next.

Do you know if there is a way to turn off the displaying of "public", "private" and "protected" entries in the variables column for C++ classes? This seems like a waste of space for me, and not something I generally care about during debugging.

Randy Croucher

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


On Nov 10, 2003, at 8:37 PM, Randy Croucher wrote:

I thought I had seen an article about how to add your own custom "Summary" to your variable types. Like when you have a variable of type WindowRef and the Summary column in the debugger says 'title="Window" index=0'. I would like to do this for a few of my classes.

Randy Croucher
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Customizing variable's summary
      • From: Jim Ingham <email@hidden>
References: 
 >Customizing variable's summary (From: Randy Croucher <email@hidden>)
 >Re: Customizing variable's summary (From: Matthew Firlik <email@hidden>)

  • Prev by Date: Folder reference weirdness
  • Next by Date: Re: Customizing variable's summary
  • Previous by thread: Re: Customizing variable's summary
  • Next by thread: Re: Customizing variable's summary
  • Index(es):
    • Date
    • Thread