Re: Where is main?
Re: Where is main?
- Subject: Re: Where is main?
- From: Jim Ingham <email@hidden>
- Date: Tue, 30 Oct 2007 13:18:56 -0700
Michael,
The globals window only shows global variables for the currently
selected library (selected in the library pane on the LHS of the
window.) The search box only searches for the globals in the
currently selected library as well.
So I think the step you are missing is to click on your executable in
the LHS list - if you did "New Project" and made a "standard tool" the
name of your executable will be the same as the name you chose for the
project. Do you not see that name in this list?
Also, with some "New Project" templates, the default build
configuration is Release. Make sure you switch this to the Debug
target.
Jim
On Oct 30, 2007, at 11:23 AM, Michael wrote:
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:
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:
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:
This email sent to email@hidden