Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mac > BOOK: Professional Xcode 3
BOOK: Professional Xcode 3
This is the forum to discuss the Wrox book Professional Xcode 3 by James Bucanek; ISBN: 9780470525227
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Xcode 3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 19th, 2010, 06:04 PM
Registered User
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Debugger Data formatters

This is my object structure

NSURL * url;

MyObjectB : MyObjectA

For discussion, avariable instanceOfMyObjectB has been created. Looking at the variable window, I see this:

instanceOfMyObjectB 0x....
MyObjectA {...}
NSObject {...}
url 0x... out of scope

The URL is not printed out, out of scope is printed and it contains just the format string({(unichar *)Xcode_CFStringSummary((void *)[$VAR description], $ID)}:s, default one provided by XCode). If I go to the debugger console and do 'po instanceOfMyObjectB.url', OR po [instanceOfMyObjectB.url description] it prints out the URL correctly. In fact, all the members of MyObjectA only show their format string but all print out correctly in the debugger console.

Working with this a bit, it looks like there is an issue with $VAR. If I replace $VAR with instanceOfMyObjectB.url, it works fine. But this formatter is now specific to the variable name.

Any Clues? I've read the section on formatters in your book and there is one section where you talk about casting the derived object to the superclass. However, that doesn't seem to help.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error for Formatters Maverick72 .NET Framework 2.0 0 October 30th, 2008 07:25 AM
no debugger found dudette .NET Framework 1.x 0 July 4th, 2007 10:27 AM
Help! Script Debugger! Boker BOOK: Beginning ASP 3.0 2 February 27th, 2007 07:28 PM
Need Help : VS Just-in-time Debugger rahi Visual Basic 2005 Basics 3 June 29th, 2006 11:43 PM
sql debugger dkspivey SQL Server 2000 1 January 12th, 2006 11:07 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.