Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying fixed point in XCode debugger



On Apr 28, 2006, at 12:42, James Bucanek wrote:

I agree that Xcode should ship with more data formatters for common types, but I don't think they need to go in the Variables View menu. Maybe we can start an ad hoc group to develop a collection of common data formatter plug-ins and donate them to the Xcode development team?

Why do you not think they would go into the Variables View menu? That's the natural place to look for such a thing. Consider this scenario: You're hunting down a bug in somebody else's code. The data you're given is in a struct, but the data seems to be placed into the wrong fields of the struct (perhaps the struct-writing code is reading sized hunks from a file stream, but the format is out of date). You look at one of the fields that should contain a long, but the value is way out of the range that should be there. The field before it should contain a C string, but it too has strange values. The fastest way to see what is wrong is to view the long field as a C string. If it shows the string that should be in the other field, then you know what the problem is.


Yes, in this case you could view as OSType. So I used the wrong types in my scenario. :)

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.