Re: LLDB: no ivars shown in variable pane
Re: LLDB: no ivars shown in variable pane
- Subject: Re: LLDB: no ivars shown in variable pane
- From: Andreas Grosam <email@hidden>
- Date: Sat, 20 Apr 2013 09:58:14 +0200
On 19.04.2013, at 19:29, Jens Alfke wrote:
>
> On Apr 19, 2013, at 6:09 AM, Andreas Grosam <email@hidden> wrote:
>
>> Xcode's does not show any of the ivars in the variable pane when debugging, e.g. when breaking here:
>
> I have been having a lot of trouble with this lately. I've never found LLDB to be particularly reliable, but lately (Xcode 4.6?) it's become worse. Local variables are frequently missing, including 'self'. Sometimes I get a message like "this appears to be an Obj-C stack frame but no 'self' variable is available". It's not 100% consistent, but it happens more often than not, and it's very frustrating. I've been resorting to temporary NSLog calls :-p
>
> —Jens
I couldn't even use po or print in the lldb console - the variables simply didn't exist *sigh*
Now, the other day, it's showing them again in another project. This is all "Debug" configuration, just for info.
NSLog is a last resort, but many classes do not implement a helpful debugDescription message themselves. My code is also cluttered with those debug logs:
- (void) connection:(NSURLConnection *)connection willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
{
NSURLProtectionSpace* protectionSpace = [challenge protectionSpace];
DLogInfo(@"\nConnection [%d] willSendRequestForAuthenticationChallenge:%@, attempt #:%d)",
_connectionID, challenge, (int)[challenge previousFailureCount]);
DLogDebug(@"\nchallenge.error: %@"
@"\nchallenge.failureResponse: %@"
@"\nchallenge.previousFailureCount: %d"
@"\nchallenge.proposedCredential: %@",
[challenge error], [challenge failureResponse],
(int)[challenge previousFailureCount], [challenge proposedCredential]);
DLogDebug(@"\nprotectionSpace.authenticationMethod: %@"
@"\nprotectionSpace.host: %@"
@"\nprotectionSpace.proxy: %@"
@"\nprotectionSpace.protocol: %@"
@"\nprotectionSpace.realm: %@"
@"\nprotectionSpace.distinguishedNames: %@)",
[protectionSpace authenticationMethod], [protectionSpace host],
[protectionSpace proxyType], [protectionSpace protocol], [protectionSpace realm],
[protectionSpace distinguishedNames]);
if ([challenge previousFailureCount] >= 5) {
DLogInfo(@"\nConnection [%d] Exceeding maximum authentication attempts. Authentication challenge cancelled.",_connectionID);
[challenge.sender cancelAuthenticationChallenge:challenge];
return;
}
...
Did you discover the actual code? ;)
_______________________________________________
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