Author Topic: help to get started with the debugging  (Read 2337 times)

Offline jackhab

  • Multiple posting newcomer
  • *
  • Posts: 16
help to get started with the debugging
« on: December 02, 2008, 11:24:35 am »
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 << " ";
    }
}

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]