News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Vector<string> cannot be displayed in Watches

Started by dwu, September 08, 2011, 04:21:28 AM

Previous topic - Next topic

dwu

I installed code:blocks 10.05 in Windows Xp.
I couldn't watch the vector<string> variable in debug mode, as shown here: http://dl.dropbox.com/u/11813850/ss.JPG
The code I use:

#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main()
{
    vector<string> a(2);
    a[0]="aaa";
    a[1]="bbb";
    return 0;
}


Could you please let me know what I should do in order to observe the variable?

Thanks in advance,

Di

oBFusCATed

You need two things:
1. debugger branch nightly
2. python enabled gdb

Then search the forum for details how to use python enabled gdb.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]