Kit*_*sto 15 c++ breakpoints string-comparison conditional-breakpoint visual-studio-2012
这是我多年来不时尝试过的,而且从未成功过.我只想根据字符串相等性为Visual C++ 2012设置条件断点.我想测试的变量是
string test;
Run Code Online (Sandbox Code Playgroud)
我试过了
test == "foo"
=> The breakpoint cannot be set. no operator "==" matches these operands
test == string("foo")
=> The breakpoint cannot be set. no operator "==" matches these operands
test.compare("foo") == 0
=> The breakpoint cannot be set. This expression has side effects and will not be evaluated.
strcmp(test.c_str(), "foo") == 0
=> The breakpoint cannot be set. This expression has side effects and will not be evaluated.
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
21233 次 |
最近记录: |