Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jackhab on December 02, 2008, 11:24:35 am

Title: help to get started with the debugging
Post by: jackhab 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]