Original Post
I hate the Visual Studio debugger with a passion. Other than setting static breakpoints and browsing primitive data types it seems to fall down. I was trying to set a conditional data breakpoint and it never triggered. So I wrote a simple program that I felt should not fail to break: I then set a conditional data breakpoint on s to break if it's size is greater than 10. I set it by highlighting s, RMC/New Breakpoint..., select the Data tab, hit the "Condition..." button and entered the expression s.size() > 10:
I run the program and it never breaks. If I'm doing something obviously wrong, other than using Visual Studio, please let me know. BTW, I tried this in VS2003 and VS2005 Aug CTP
#include <string>
int
main( int, char** )
{
std::string s = "String";
s = "Longer string";
s = "Even longer string";
s = "A super duper really long string";
return 0;
}
I run the program and it never breaks. If I'm doing something obviously wrong, other than using Visual Studio, please let me know. BTW, I tried this in VS2003 and VS2005 Aug CTP