• 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: viewing enum values in debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: viewing enum values in debugger


  • Subject: Re: viewing enum values in debugger
  • From: David Dunham <email@hidden>
  • Date: Wed, 7 Mar 2007 09:15:23 -0800

On 7 Mar 2007, at 09:01, Micah Sharp wrote:

Hi there, maybe I'm blind, but I cannot figure out a way to view the actual integer value of an enum in the debugger at runtime. I add it as an expression and it just says Out Of Scope. Is there some kind of special trick to see the exact value?

Make it a typedef:

	typedef enum {
		kWindowsLatin = 0,
		kUTF8 = 8
	} EncodingT;

David Dunham     A Sharp, LLC
Voice/Fax: 206 783 7404     http://a-sharp.com
Efficiency is intelligent laziness.

_______________________________________________
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: 
 >Path to Images using Xcode java project (From: Michael Foster <email@hidden>)
 >viewing enum values in debugger (From: Micah Sharp <email@hidden>)

  • Prev by Date: Re: [OT] Disk image creation
  • Next by Date: Re: [OT] Disk image creation
  • Previous by thread: viewing enum values in debugger
  • Next by thread: Re: The date at compile time?
  • Index(es):
    • Date
    • Thread