Author Topic: Having trouble with Watching variables.  (Read 2851 times)

dempl_dempl

  • Guest
Having trouble with Watching variables.
« on: September 21, 2007, 08:28:40 pm »
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?

Offline zak

  • Multiple posting newcomer
  • *
  • Posts: 26
Re: Having trouble with Watching variables.
« Reply #1 on: July 29, 2008, 11:43:43 am »

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