News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Having trouble with Watching variables.

Started by dempl_dempl, September 21, 2007, 08:28:40 PM

Previous topic - Next topic

dempl_dempl

Hi,
I'm having trouble with watching variables.
Compiled project with "-g" option turned on.

In watch window , I get something like :

someVariable : No symbol "someVariable in current context.


And it definetly should be in context, because I've made breakpoint a few lines below declaration of someVariable.
Program writes same  for someVariable being any type, no matter wheither it's simple or complex.
someVariable is local function variable.

Did I forgot to check some option or something?

zak


This problem problem appear when watch at a variable of a base class from a
derived context.

For solve it you must use this->  before the variable name

In can be a task for developpers to remove this problem.

Best Regards