I'm debugging a C/C++ program where I want to set a single break point with a condition depending on multiple variables.
break foo.cpp:60 if (bar == 3 && i == 5)
This doesn't seem to work, as it stops whenever it hits foo.cpp:60 instead of whenever both of the conditions match (it doesn't even match one of the conditions). Is there an easy way to do what I'm trying to achieve?
Edit: bar and i are not native C types, they are strongly typed.
break foo.cpp:60 if ((A) bar == 3 && (B) i == 5)