• 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: Local variables not displayed in debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Local variables not displayed in debugger


  • Subject: Re: Local variables not displayed in debugger
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 10 May 2005 08:25:17 -0700


On May 10, 2005, at 1:02 AM, Larry Gerndt wrote:

Sigh...I've had numerous problems with the debugger, here's the latest: It doesn't display local variables properly. Some are missing, some duplicated three times (and yes, there's only defined in the source). Do I have a hopelessly messed up project on my hand or is this a known bug?

FWIW, the project builds and runs fine.

P.S. I'm using XCode 2.0, but with gcc 3.3 because I'm using an external C++ static library that was compiled with gcc 3.3 (ugg).


Depending on the way your code is structured this may be behaving correctly. Remember that it's debugging the object code the compiler generated, not the source code that you fed it (though it maps the latter to the former in the debugger). For the multiple instances, it does that if you have declared the same identifier multiple times in different scopes. For "missing" locals, the compiler won't generate symbols for variables that are not used (ss if you have a warning about a variable declared but not used).


If you have a local that is set and used, and you can go to the gdb console and type "p <varname>" and it prints the value, but it still doesn't show up in the Xcode debugger, then that would be a bug.

Chris
_______________________________________________
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: 
 >Local variables not displayed in debugger (From: Larry Gerndt <email@hidden>)

  • Prev by Date: Codewarrior ->Xcode port
  • Next by Date: Re: Xcode 2.0 debugger problem
  • Previous by thread: Local variables not displayed in debugger
  • Next by thread: re: Local variables not displayed in debugger
  • Index(es):
    • Date
    • Thread