All we’re fond of conditional break points if we need to execute the program until some specific condition exists. We usually give numerical expressions to give conditional break points. If you don’t know about conditional break points, just have a look at MSDN documentation. or this one.
Now the C/C++ programmers are blessed with break with string conditions.
Just put a breakpoint in your source code and right click on that choose “Condition” to see the following window appear. You can give string comparison routines to set the break point.
Once you start debugging, you can see the break point hit on the condition you’ve given
Visual Studio Beta 2 currently supports the following functions (Taken from Habib Heydarian’s blog)
strlen, wcslen, _tcslen, strnlen, wcsnlen, _tcsnlen, strcmp, wcscmp, _tcscmp, stricmp, wcsicmp, _tcsicmp, strncmp, wcsncmp, _tcsncmp,strnicmp, wcsnicmp,_tcsnicmp,_stricmp, _wcsicmp, _strnicmp, _wcsnicmp
This may be changed or updated in the final release. Anyway enjoy your breakpoints!