Tracking CouchUITableSource's child class

10 views
Skip to first unread message

Pulkit Singhal

unread,
May 17, 2013, 2:43:42 PM5/17/13
to mobile-c...@googlegroups.com
I often have to debug through CouchUITableSource but I have numerous controllers using it so sometimes it becomes challenging to pinpoint the class I'm interested in.

If I want to set a conditional breakpoint in CouchUITableSource, which property can I use to quickly figure out:
a) the actual child class? and/or
b) the database name which its query datasource is using?

Jens Alfke

unread,
May 17, 2013, 4:18:42 PM5/17/13
to mobile-c...@googlegroups.com
On May 17, 2013, at 11:43 AM, Pulkit Singhal <pulkit...@gmail.com> wrote:

If I want to set a conditional breakpoint in CouchUITableSource, which property can I use to quickly figure out:
a) the actual child class? and/or

You mean you’re subclassing CouchUITableSource? The command ‘po [self class]’ should do it. I haven’t used conditional breakpoints, so I’m not sure how you’d test that in the debugger.

b) the database name which its query datasource is using?

po [[[self query] database] name]

—Jens
Reply all
Reply to author
Forward
0 new messages