User forums > Using Code::Blocks

Vector<string> cannot be displayed in Watches

(1/1)

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:

--- Code: ---#include <iostream>
#include <string>
#include <vector>
using namespace std;

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

--- End code ---

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.

Navigation

[0] Message Index

Go to full version