• 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: using po in debugger Xcode 5.1.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using po in debugger Xcode 5.1.1


  • Subject: Re: using po in debugger Xcode 5.1.1
  • From: Kate Stone <email@hidden>
  • Date: Sat, 17 May 2014 17:17:51 -0700

Much appreciated.

Kate Stone email@hidden
 Xcode Runtime Analysis Tools

On May 17, 2014, at 5:11 PM, Roland King <email@hidden> wrote:

rdar://16952552

On 18 May, 2014, at 6:56 am, Kate Stone <email@hidden> wrote:

LLDB has relaxed the restriction on where you can use “po” for developers who weren’t always clear on whether a given _expression_ resulted in an Objective-C object or not.  It will now print the description of an Objective-C object, or fall back to the behavior of the _expression_ evaluator “p” for non-objects.

The issue in this case is unrelated, so we’d definitely appreciate a bug report at http://bugreport.apple.com.

Kate Stone email@hidden
 Xcode Runtime Analysis Tools

On May 17, 2014, at 3:46 PM, Alex Zavatone <email@hidden> wrote:

But I think that's the point

We want po to display the contents, no matter if they are structs or NSObjects.

If you want to take the sample I posted earlier, it can be made to display those core foundation data objects in addition to the NSObject.s

On May 17, 2014, at 6:17 AM, João Varela wrote:

I don't think that is the problem. The problem is that NSRect is not an NSObject-based object, but a C struct and po may not work properly with structs, as according to the docs of LLDB po prints out the description of a ObjC description.

You can check that here (search for NSRect):

https://developer.apple.com/library/mac/documentation/cocoa/reference/foundation/miscellaneous/Foundation_DataTypes/Reference/reference.html

and here (search for po):

http://lldb.llvm.org/lldb-gdb.html

HTH




>I think that rects have structs inside them so you'll have to expose them yourself.

>That's my guess.

>On May 17, 2014, at 2:15 AM, Roland King wrote:

> I have a similar problem today but no amount of casting helps, here's mine
>
> (lldb) po textField.constraints
> error: instance method 'preparedContentRect' has incompatible result types in different translation units ('<unknown type>' vs. 'NSRect' (aka 'CGRect'))
> note: instance method 'preparedContentRect' also declared here
> note: declared here with type 'NSRect' (aka 'CGRect')
> error: 1 errors parsing _expression_
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
  • Follow-Ups:
    • Re: using po in debugger Xcode 5.1.1
      • From: Roland King <email@hidden>
References: 
 >Re: using po in debugger Xcode 5.1.1 (From: João Varela <email@hidden>)
 >Re: using po in debugger Xcode 5.1.1 (From: Alex Zavatone <email@hidden>)
 >Re: using po in debugger Xcode 5.1.1 (From: Kate Stone <email@hidden>)
 >Re: using po in debugger Xcode 5.1.1 (From: Roland King <email@hidden>)

  • Prev by Date: Re: using po in debugger Xcode 5.1.1
  • Next by Date: dylib in application bundle
  • Previous by thread: Re: using po in debugger Xcode 5.1.1
  • Next by thread: Re: using po in debugger Xcode 5.1.1
  • Index(es):
    • Date
    • Thread