Menu

#150 Bugs with the debugging of code with STL containers

open
nobody
None
2015-02-15
2015-02-15
TaoKY
No

Version: 5.9.2 with TDM-GCC 4.8.1
OS version: Windows 7 SP1

I wrote a cpp program including this code:

vector <int> v;

int num[] = {25, 36, 5, 5, 9, 27, 2, 19, 22, 23, 10, 1, 32};

for (int i = 0; i < 13; i++)

    v.push_back(num[i]);

Then I use the debugging tools, set a breakpoint at v.push_back(num[i]); and added watch of v, i and num.

It doesn't work. I have tried several times. It only shows the structural information of the vector v, and it cannot display the value of i and num. When I press the 'next line' button, it doesn't have any respond.

1 Attachments

Discussion


Log in to post a comment.