Re: Globals variable problem
Re: Globals variable problem
- Subject: Re: Globals variable problem
- From: Greg Guerin <email@hidden>
- Date: Sat, 26 Jul 2008 19:30:00 -0700
Michael wrote:
Sorry...not even sure what this is.
First, read over "Editing Build Settings", especially the first parts:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/
XcodeBuildSystem/300_build_settings/chapter_4_section_5.html
(Warning: URL may be line-wrapped by Mail).
Second, to open the Target Info window described in "Editing Build
Settings", do this:
Expand the Targets item in the Groups and Files list on the left side
of your project window. Then, double-click your target (maybe named
"Sort_strings", going by what you wrote before) and a Target "your
target here" Info window should open.
Now, with the Target Info window open, click the Build tab and you
should see the Build settings editor pictured in Figure 3-5 at the
above URL. It will probably be at the start of the list, not halfway
down as shown in that screenshot.
Next, choose the Configuration you want to affect, generally Debug.
Then choose to Show: All Settings.
Confirm that the list's columns are labeled Title and Value. If not,
see [SIDEBAR] below.
If the scroller isn't at the top, move it there.
One of the gray-background sub-headings should be Build Options (this
is the Xcode 3.0 name; it may differ in Xcode 3.1). By default, the
list is arranged in alphabetical order of sub-heading.
Under Build Options should be this title on the left (its Xcode 3.0
name):
Debug Information Format
On its right should be one of these:
Stabs
DWARF
DWARF with dSYM File
If it says "DWARF with dSYM File", then click on that value (it's a
popup) and choose "DWARF".
If it already says "DWARF" or "Stabs", then the problem is likely
elsewhere and you can ignore everything I've written and just file a
bug report as Bill Bumgarner recommended.
Close the Target Info window, do a Clean, then do a Build. Be sure
you're building the configuration you chose in the Build editing window.
At this point, if you chose DWARF, you should be able to Debug, bring
up the Globals Browser window, and it should show a list of all
globals in your code when you choose your code-module in its left-
hand list. If that doesn't happen, post again. Or if something I
wrote doesn't match what you see, also post again.
[SIDEBAR]
If the column labels are not Title and Value, do one or both of the
following.
1. If left column is Name instead of Title, right-click (or control-
click) any item in the list. Choose "Show Settings Titles" from the
contextual menu.
2. If right column is Definition instead of Value, right-click any
item in the list. Choose "Show Values" from the contextual menu.
Return to where you were reading before this sidebar.
- - -
The above uses Xcode 3.0 terms and labels. It's possible that Xcode
3.1 has different labels or terms for some of these, but the figures
and terminology I see in the online Xcode references are consistent
with what I've written and with what I see in Xcode 3.0. I'm fairly
sure the online docs are for Xcode 3.1, because iPhone this and
iPhone that appear regularly in the text, and Xcode 3.0 is not
capable of targeting iPhone.
You might also want to read the rest of the "Xcode Build System
Guide". Even if it doesn't all make sense right now, at least you'll
have seen it and be aware of the terminology, so you can refer to it
in the future.
-- GG
_______________________________________________
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