Re: Xcode - GDB console trouble
Re: Xcode - GDB console trouble
- Subject: Re: Xcode - GDB console trouble
- From: Jeffrey Oleander <email@hidden>
- Date: Mon, 8 Dec 2008 10:28:00 -0800 (PST)
> On Mon, 2008/12/08, email@hidden <email@hidden> wrote:
> From: email@hidden <email@hidden>
> Subject: Xcode - GDB console trouble
> To: email@hidden
> Date: Monday, 2008 December 8, 10:24
> Hello list
>
> On XCode 3.1 I am having real trouble getting xcode/gdb to
> print out object representations.
> Context menu item "Print description to console"
> produces a message such as "Printing a description of
> X" and nothing more.
> And the integrated gdb console is dead.
> The gdb prompt appears but responds to no input. So I
> cannot po my objects or otherwise interact with gdb at the
> console.
>
> I can po when running gdb at the command line,
>
> I did an in-place upgrade from Xcode 3.0 to 3.1 some time
> ago.
>
> Any ideas?
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/AddingBehaviortoaCocoaProgram/chapter_4_section_5.html
description—Implement this NSObject method to return a string that concisely describes the properties or contents of the object. This information is returned by the print object command in the gdb debugger and is used by the %@ specifier for objects in formatted strings. For example, say you have a hypothetical Employee class with attributes for name, date of hire, department, and position ID. The description method for this class might look like the following:
_______________________________________________
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