Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is main?



Hi Jim,
Thanks for answering.
Well...as  a relative novice, I am not sure if it is indeed a bug.
May I describe a very simple project, and perhaps this might explain it?


>>>>

#include <stdio.h>
char buffer[20];
int i;


int main (int argc, const char * argv[]) {
    /******/
return 0;
}

<<<<<<<

In the prior version of Xcode, I was able to follow "buffer" in the debugger. Now, I cannot find it.

Have tried the following.

In the debugger viewer window, it does not show up under the "variables" column. 
In the "Globals Browser" I do not see "main" in the Library column, nor do I find "buffer" if I search for it suing the Globals Browser Search field.

Having said that, perhaps there is still something that I am not doing...which is high on my possible lists...before I think this is a bug?

Thanks again in advance.

Michael ( de Haan) 



On Oct 30, 2007, at 11:05 AM, Jim Ingham wrote:
The globals browser is for variables which have global scope in your module.  If by "main" you mean the entry point for your project, that's a function and so would not show up in the globals window.  If not, please file a bug with your example, what you expect to see and what you actually see and we will check it out.

Thanks,

Jim

On Oct 30, 2007, at 11:05 AM, Jim Ingham wrote:

The globals browser is for variables which have global scope in your module.  If by "main" you mean the entry point for your project, that's a function and so would not show up in the globals window.  If not, please file a bug with your example, what you expect to see and what you actually see and we will check it out.

Thanks,

Jim

On Oct 30, 2007, at 9:13 AM, Michael wrote:

I posted an earlier query, but I think I was just too vague and was not too sure what the problem really was. So, I think I may be a little closer to defining the problem.
Using "Standard Tool" in Xcode 3.0, I am not able to see "main" in the globals browser, where, I am assuming, the variables that I am trying to watch, are placed.
Could anyone enlighten me as to what it is, if anything, is the issue.
Thank you again.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Where is main? (From: Michael <email@hidden>)
 >Re: Where is main? (From: Jim Ingham <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.