You can use a function call as a breakpoint filter. In this example, if the value in the string str is abcde, then execution stops in function foo():
(dbx) stop in foo -if !strcmp(“abcde”,str)