News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

help to get started with the debugging

Started by jackhab, December 02, 2008, 11:24:35 AM

Previous topic - Next topic

jackhab

Hi
I just installed Code::Blocks for the first time and try to debug some test apps. For instance:
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]