Code::Blocks Forums

User forums => Help => Topic started by: dempl_dempl on September 21, 2007, 08:28:40 pm

Title: Having trouble with Watching variables.
Post by: dempl_dempl 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?
Title: Re: Having trouble with Watching variables.
Post by: zak 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