• 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
Re: Xcode 3.1(Beta) Developer Documentation opens in separate Safari window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Xcode 3.1(Beta) Developer Documentation opens in separate Safari window (From: Christian Isaacs <email@hidden>)
 >Re: Xcode 3.1(Beta) Developer Documentation opens in separate Safari window (From: Kristopher Matthews <email@hidden>)
 >Re: Xcode 3.1(Beta) Developer Documentation opens in separate Safari window (From: Kristopher Matthews <email@hidden>)
 >Re: Xcode 3.1(Beta) Developer Documentation opens in separate Safari window (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Xcode 3.1(Beta) Developer Documentation opens in separate Safari window
  • Next by Date: gcc and a problem with temporaries
  • Previous by thread: Re: Xcode 3.1(Beta) Developer Documentation opens in separate Safari window
  • Next by thread: Re: Xcode 3.1(Beta) Developer Documentation opens in separate Safari window
  • Index(es):
    • Date
    • Thread