Re: Viewing and Editing Anonymous Namespace Variables
Re: Viewing and Editing Anonymous Namespace Variables
- Subject: Re: Viewing and Editing Anonymous Namespace Variables
- From: "Duane Murphy" <email@hidden>
- Date: Tue, 16 May 2006 16:02:50 -0700
--- At Tue, 16 May 2006 12:54:53 -0700, Rush Manbert wrote:
>Duane Murphy wrote:
>> Howdy Xcoders,
>> How do I view variables that are in the anonymous namespace?
>>
>> I use C++ anonymous namespaces for many things (ie it's the modern
>> static). Unfortunately, I can't seem to work out how to view a viariable
>> in an anonymous namespace in Xcode (or gdb for that matter).
>>
>> The gdb show variables command lists the variable as (anonymous
>> namespace)::the_variable. I tried print ::the_variable but get
>>
>> Address of symbol "the_variable" is unknown.
>>
>> On a related subject, I have a char* variable displayed in Xcode that
>> points to a null-terminated string of characters (do we remember
>> those :-). How do I edit it? I'd like to be able to change the
>> characters from the debugger to see how it affects the program (also in
>> this case, the string is incorrect, and I'd like to fix it without
>> having to restart).
>>
>Hi Duane,
>
>Don't know about the first one, but for the related subject I think the
>way to go is to use the Memory Browser tool (available on the
>Debug|Tools submenu) and change it there.
Thanks for the idea Rush. I tried this, but for the life of me I can't
work out how to change anything.
Is there a magic key stroke to allow editing in the Memory Browser?
...Duane
...Duane
_______________________________________________
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