watchpoint on variable in function scope

Niko Sams
2011-06-01T21:22:13Z

Hi again,

please have a look at the example code below.
How can i set a watchpoint on i before starting the appliaction?
it used to work with
"watch foo::i"

thanks,
Niko

------------------
void foo() {
static int i=0;
++i;
}
int main(int argc, char **argv) {
foo();
return 0;
}