You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use CodeLite to compile the C++ code below. When debugging and stepping through the code line by line, the values in the "Locals" view do not change. When examining variables in the "Watches" view they are updated after every executed line.
I compiled the code with both clang++ and g++ with no effect. I use gdb as a debugger.
Used versions:
clang++ 3.5.0
g++ 4.8.4
gdb 7.7.1
CodeLite 9.1.5
classtestclass {
public:int a;
int b;
int c;
testclass();
intfoo(int a);
intbar(int a);
private:int pa;
int pb;
int pc;
};
testclass::testclass()
{
a = 0;
b = 0;
c = 0;
pa = 0;
pb = 0;
pc = 0;
}
inttestclass::foo(int a)
{
pa = a;
pc = pa + pb;
return a;
}
inttestclass::bar(int a)
{
pb = a;
pc = pa + pb;
return a;
}
intmain(void)
{
testclass t;
t.foo(1);
t.bar(2);
return0;
}
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I use CodeLite to compile the C++ code below. When debugging and stepping through the code line by line, the values in the "Locals" view do not change. When examining variables in the "Watches" view they are updated after every executed line.
I compiled the code with both clang++ and g++ with no effect. I use gdb as a debugger.
Used versions:
The text was updated successfully, but these errors were encountered: