I'm trying to set a conditional break point using the Visual Studio Debugger for Visual C++. I set the breakpoint and then I attempt to set a condition by going to the Edit, Breakpoints.... menu. I locate my breakpoint and click on the "Condition..." button. I enter a condition similar to strcmp(var,"someliteral" == 0, but when I try to click OK for the edit breakpoints dialog, I get a message telling me it cannot set the breakpoint. I've #include'd <string.h> and the var is within the scope of the breakpoint. If I put a simple express like var == 'c' that works. It seems not to like function calls, but I thought strcmp(var,"some literal" == 0 qualified as an expression.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.