• 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: Xcode debugging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode debugging


  • Subject: Re: Xcode debugging
  • From: Mark Thomas <email@hidden>
  • Date: Tue, 22 Mar 2005 23:27:08 +0000
  • Organization: Coderus Ltd

Thanks for the info, I guess I can do "po" on CF objects as I'm find adding
in Debug code defeats the need of the debugger variable window.

Sorry I must have missed the memory browser option - Doh !!!.

Thanks
Mark.

>
> On Mar 22, 2005, at 3:04 PM, Mark Thomas wrote:
>
>> Hi,
>>   I'm finding with Debugging and Xcode is really hard looking a
>> certain
>> variable types can you
>>
>> 1) Actually look at CF and NS objects when within the console say
>> via a
>> print command ???.
>
> Not sure what you mean here.  the print command in the console will
> show you the contents of the CF & NS types, but most often these are
> either opaque types - i.e. the debugger doesn't know what the
> structure fields are, or the fields are not very helpful because
> getting from them to the actual contents of the object is not trivial.
>
> You can use the "print-object" command ("po" for short) to run the
> "description" method for the object.  For CF objects, the command
> CFShow fulfills the same purpose.
>
>>
>> 2) Looking at char* and strings, by default the debugger always
>> crops the
>> text but I want to look at the whole thing, this is also true if
>> you do it
>> in the console as well. Can you can the print statement to show the
>> whole
>> thing ???.
>
> In the console type:
>
> (gdb) set print elements 0
>
> and it will print the entire contents of strings.
>
>>
>> 3) Is there anyway to just look at memory and then also any size.
>
> In Xcode 1.5 and above there is a memory browser under Debug->Tools-
>> Memory Browser.
>
> In the gdb console, do:
>
> (gdb) help x
>
> to get info about the "examine" command, which is what you want here.
>
> Jim
>
>
>>
>> Thanks in advance,
>>
>> Mark.
>>
>>  _______________________________________________
>> 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
>>
>
>
>

 _______________________________________________
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

References: 
 >Re: Xcode debugging (From: Jim Ingham <email@hidden>)

  • Prev by Date: Re: Framework issues
  • Next by Date: Re: Framework issues
  • Previous by thread: Re: Xcode debugging
  • Next by thread: problem after reinstalling xcode 1.5!
  • Index(es):
    • Date
    • Thread