Visual Studio中的添加断点功能中支持的字符串函数有:strlen,
1. Visual Studio 2010 下,可以使用:strcmp( name._Bx._Buf, "sam")==0 或 str._Bx._Buf[0]=='1'进行条件设置;
2. Visual Studio 2012 下,
strcmp( fileName._Bx._Buf, "sam")==0
3. Visual Studio 2015 下:
str[0] == 's'
reference:
[http://www.cnblogs.com/kekec/p/5635854.html](http://www.cnblogs.com/kekec/p/5635854.html)
[https://stackoverflow.com/questions/21935563/how-to-set-conditional-breakpoint-based-on-string-comparison-in-visual-studio](https://stackoverflow.com/questions/21935563/how-to-set-conditional-breakpoint-based-on-string-comparison-in-visual-studio)
[http://www.suodenjoki.dk/us/archive/2010/conditional-breakpoint.htm](http://www.suodenjoki.dk/us/archive/2010/conditional-breakpoint.htm)
reference:
http://blog.csdn.net/sunyikuyu/article/details/8864933