I am debugging my code and adding a variable in the watch list but I cant see the detail. I think it is because of my variable. My variable is Var::m_Id. Can't I see the details of this variable? Or else how?
it is not static variable. I declared my variables in the namespace like that,
namespace PicDraw
{
bool me;
int x;
int y;
}
Whenever I want to use PicDraw::x, I can use but whenever I add this variable into my watch list, it says "PicDraw::x error: symbol 'PicDraw::x' not found ". If I use classes instead of namespaces, I can see theequation. What is the problem?
(The Debug/Release mode is shown on the top of the screen)
On my VC++ (2008) Express I can watch for all namespace variables in Debug mode and all initialized namespace variables in Release mode.
If I try to watch the value of an uninitialized namespace variable on the Release mode I get your same error message.
This is fairly obvious but I've made this mistake more than once so I'd like to point it out: are you sure you are looking at the "Watch" tab and not the "Autos" or "Locals" tab? They all look fairly similar.
Mmn, the thing is that namespace variables are initialised to zero (unless otherwise specified) before the program starts - so technically it's
not an uninitilisation problem.
It's probably just a lack of debugger symbolic information?