Re: Xcode 3.1(Beta) Developer Documentation opens in separate Safari window
Re: Xcode 3.1(Beta) Developer Documentation opens in separate Safari window
- Subject: Re: Xcode 3.1(Beta) Developer Documentation opens in separate Safari window
- From: Kristopher Matthews <email@hidden>
- Date: Wed, 30 Apr 2008 15:47:54 -0500
Drat.
Thanks. :) I keep forgetting it defaults to release.
On Apr 30, 2008, at 3:42 PM, Chris Espinosa wrote:
On Apr 30, 2008, at 1:32 PM, Kristopher Matthews wrote:
I just started a new project (console utility) with this code:
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString* fileName = @"/Users/krism/Downloads/NHOrders.csv"; //
[[NSString alloc] initWithCString:argv[1]];
// NSLog(@"filename - %@", fileName);
...
In the debugger, Xcode shows "fileName" to be "Invalid" when I
hover over it. It does not show fileName in the variables window at
all. Same with static assignment or using the construct with argv.
Am I doing something amazingly stupid or has the debugger gone
insane?
(For the record, yes, the NSLog displays the correct filename. I
also have "Load Symbols Lazily" turned off. And for the love of all
that's good, stop auto disabling my breakpoints!)
Are you by chance trying to debug the Release configuration? If
that NSLog is indeed commented out, at any optimization level above -
O0 the compiler will just not generate any code at all for fileName,
much less any symbolic information about it,
Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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