Re: Why can't I see static variables in debug window
- From: Robby <Robby@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 20 Apr 2006 16:09:02 -0700
Also,
Not only don't I see x in the local debug window but I don't see in the auto
debug window either!
--
Best regards
Robert
"Paul G. Tobey [eMVP]" wrote:
No, I'd say that microsoft.public.windowsce.embedded.vc is the right place,.
since this is an eVC question, but we'll try answering here.
So, you're expecting to see the variable in the Auto version of the
variables window no matter what the context is? You'll find that, if you're
*using* the static in the context where you hit a breakpoint, the value *is*
shown. If you're expecting it to show up when your code isn't using it,
yes, you're out of luck. If you change the variables window to show Locals,
you'll see if, if it has local scope. If it's a global, you can always find
it in the source window and float the mouse cursor over it to see the value.
Paul T.
"Robby" <Robby@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ED17B518-8547-406C-876F-52EC92FCDB69@xxxxxxxxxxxxxxxx
Hi,
I would like to excuse myself for double posting this question, however I
believe the nature of this question would be better posted in 'Embeded
general questions' for it is more of a general question than a programming
one.
I am a <newbie> to eVC++, and I was wondering why is it that when I am in
debuging mode with the debug and variables watch windows open ayt the
bottom
of the screen, I seem to not be able to view the contents of the variables
that were declared as static?
ex: if I declared a variable like this:
static int cxClient;
and then during the WM_SIZE handler i would like to view cxClient's value
during a debug session like so:
case WM_SIZE:
cxClient = LOWORD (lParam); //I would like to see the variables value!!!
cyClient = HIWORD (lParam);
...
...Other code
But I see all other variables except the ones that were declared 'static'.
Also I can add variables to the Quick watch window, but I can only see the
value of a normal variable but not a static one?
Basically, when I run my app, I click on :
Build> start debug> go
Then the variables screens come on at the bottom of the screen... and as I
say, I can't see any of the variables which are declared static.
Can anyone help me ?
Thanking you in advance!
--
Best regards
Robert
--
Best regards
Robert
- Follow-Ups:
- Re: Why can't I see static variables in debug window
- From: Paul G. Tobey [eMVP]
- Re: Why can't I see static variables in debug window
- References:
- Re: Why can't I see static variables in debug window
- From: Paul G. Tobey [eMVP]
- Re: Why can't I see static variables in debug window
- Prev by Date: Re: Why can't I see static variables in debug window
- Next by Date: Re: Why can't I see static variables in debug window
- Previous by thread: Re: Why can't I see static variables in debug window
- Next by thread: Re: Why can't I see static variables in debug window
- Index(es):
Relevant Pages
|