Re: When did LLDB take over?
Re: When did LLDB take over?
- Subject: Re: When did LLDB take over?
- From: Matt Neuburg <email@hidden>
- Date: Thu, 08 Mar 2012 08:58:05 -0800
> (2) Does this mean LLDB is ready for prime time?
Well, I already answered my own question. (Actually it was a note on the dev forums that answered it for me.) Check out this simple code:
#import "ViewController.h"
@interface ViewController ()
@property (nonatomic, strong) NSArray* arr1;
@property (nonatomic, strong) NSArray* arr2;
@end
@implementation ViewController
@synthesize arr1;
@synthesize arr2;
- (void)viewDidLoad
{
[super viewDidLoad];
self.arr1 = [NSArray arrayWithObject:@"howdy"];
self.arr2 = nil;
int i = 0; // breakpoint here
}
@end
The "breakpoint here" line is just so we have something to break on. Okay, so put a breakpoint there and run the app. We pause, and the variables list in the debugger pane shows self->arr1 as nil and self->arr2 as being populated with the one-element array. It has their values listed backwards! And you can change this (not for the better) by playing with the order of your synthesize lines. Conclusion: This LLDB thing is one sick puppy.
m.
--
matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
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