User forums > Help

Having trouble with Watching variables.

(1/1)

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

Navigation

[0] Message Index

Go to full version