Bug #7101 2006-04-10 12:21
none
Wrong watch values
When one has the following for example:
void f1()
{
int a = 5;
a += f2();
}
int f2()
{
char a = 'a' - 'b';
return a;
}
Then when the debugger enters the f2 func, it doesn't see that variable 'a' in f2 as a char but as an int and also gives it totally different values. In my case I had an int in my first function and an enum in my second one. Then when I entered the 2nd func, it didn't see that variable in a different scope as an enum but as an int. Also in the same function I had another int which I initialized to 0 but when it gets initialized, it doesn't set that value to 0, only in the function where I'm having problems with my enum variable.
I hope it was put clear enough.
- Category
- Debugger
- Group
- Status
- Closed
- Close date
- 2006-04-18 20:50
- Assigned to