• 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
LLDB: no ivars shown in variable pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LLDB: no ivars shown in variable pane


  • Subject: LLDB: no ivars shown in variable pane
  • From: Andreas Grosam <email@hidden>
  • Date: Fri, 19 Apr 2013 15:09:10 +0200

Xcode's does not show any of the ivars in the variable pane when debugging, e.g. when breaking here:


 1         // Designated Initializer
 2         - (id) initWithRequest:(NSURLRequest*)request
 3               connectionThread:(NSThread*)connectionThread
 4         {
 5 ==>         self = [super init];
 6             if (self) {
 7                 _request = [request mutableCopy];
 8                 _connectionThread = connectionThread;
 9                 _completionSem = dispatch_semaphore_create(0);
10                 _cancelConnectionOnResponseHandlerError = YES;
11             }
12             return self;
13         }


I get this in Xcode's variable pane, which only shows the base class (NSOperation), but not any of the class' own ivars:

v	self	RXHTTPRequestOperation *	0x00000001003311e0
  >	NSOperation	NSOperation
>       other



Variables and properties are declared and defined in the implementation, e.g.:

@implementation RXHTTPRequestOperation {
    BOOL                    _isExecuting;
    BOOL                    _isFinished;
    id                      _result;

    dispatch_semaphore_t    _completionSem;
    int32_t                 _connectionID;
    NSMutableArray*         _responseHandlers;

    NSHTTPURLResponse*      _response;
    BOOL                    _terminating;
    …
}
@end

@synthesize isExecuting = _isExecuting;
@synthesize isFinished = _isFinished;
@synthesize result = _result;

@synthesize completionHandler = _completionHandler;
@synthesize response = _httpResponse;
...



I can't remember that I wasn't able to see the variables in other projects. What's going on again?


Well, after playing around with implicitly declared and defined ivars, it turned out that it has a number of caveats - and I likely go back to the convention that all ivars shall be declared explicitly.


Andreas
 _______________________________________________
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: LLDB: no ivars shown in variable pane
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Xcode crawls to halt when using breakpoints with expressions on iOS device
  • Next by Date: Re: Xcode fails to launch my app, permission denied
  • Previous by thread: Xcode crawls to halt when using breakpoints with expressions on iOS device
  • Next by thread: Re: LLDB: no ivars shown in variable pane
  • Index(es):
    • Date
    • Thread