User forums > Using Code::Blocks
help to get started with the debugging
(1/1)
jackhab:
Hi
I just installed Code::Blocks for the first time and try to debug some test apps. For instance:
--- Code: ---int main()
{
vector<int> vec(10);
int c = 0;
for (vector<int>::iterator i = vec.begin(); i <= vec.end(); i++) {
*i = c++;
cout << *i << " ";
}
}
--- End code ---
When I break and inspect the vec object in I cannot see the actual values of the vector. Am I doing anything wrong or is it an IDE/gdb limitation?
Versions:
CB 8.02
gcc 4.3.2
gdb 6.8
[attachment deleted by admin]
Navigation
[0] Message Index
Go to full version