[Qt-creator] debugger and qt-creator...

André Pönitz andre.poenitz at nokia.com
Wed May 26 13:39:43 CEST 2010


On Saturday 22 May 2010 19:42:33 ext paulo wrote:
> Hi,
> I tried the following code and I could verify the following symptoms:
> - in the main routine you can access the a.i in the locals window, but 
> not in f(A&).
> - However if I add a &a to the watchers window then I can dereference 
> the struct and access the *&a.i
> 
> #include <iostream>
> 
> 
> struct A {
> 	A(const int i) :i(i) {}
> 	int i;
> };
> 
> 
> void f(A& a) {
> 	std::cout << a.i;
> }
> 
> int main(int argc, char *argv[]) {
> 	A a(1);
> 	f(a);
> 	return 0;
> }


Ok, this is now fixed in the 2.0 and 2.0.0 branches and will be 
merged to master later in the day.

Thanks for the report.

Andre'



More information about the Qt-creator-old mailing list