struct A1
{
A1() : selfRef( *this )
{
alsoMe = this;
}
A1* selfPtr(int a, int b)
{
return this;
}
template<class T>
A1& memTemp( const T& t1, const T& t2 )
{
return *this;
}
static A1* alsoMe;
int someVeryLongInt;
A1& selfRef;
};
A1* A1::alsoMe = 0;
A1 giveAtPlease(int a, int b)
{
return A1();
}
int main()
{
A1 someVeryLongA1;
giveAtPlease( 4, 5 ) . selfRef . someVeryLongInt;
A1 array[5];
array[2].selfPtr(4, 2) -> selfRef . someVeryLongInt;
A1::alsoMe -> selfRef. memTemp< float> (4, 5.1f).someVeryLongInt;
someVeryLongA1.memTemp< float> (4, 5.1f).someVeryLongInt;
array[4].selfPtr(2,2);
return 0;
}
... ( maybe tooltip delay should be customizable? ;) )...It is but it is global for all tooltips.
edit: I forgot about main reason: when I hover 'member' in expression 'object.member' I want to see value of object.member not value of local variable named member.
edit: I forgot about main reason: when I hover 'member' in expression 'object.member' I want to see value of object.member not value of local variable named member.In previous versions of C::B there was the possibility to save a debugger "watch script". This would allow you not to type this again and again, but just load the expressions you use often from the script (it is no problem if the one or other is not present in the currently debugged frame btw). But in fact I don't know if we still have that option... oBFusCATed?!
I think this is not currently possible.So it got lost. But it maybe easy to re-implement. IIRC it was just two simple methods (I did it years ago...).
but I'm not sure it will help to make it easier to check the value of expression quickly and easily.No, the use-case is a different one: To save you from entering a lot of watches again and again across sessions. However, this is somewhat "related" to not having to enter long watch expressions again and again.