1.先设置一个断点: 2.右键单击断点,选择Edit BreakPoint,然后在Condition里面输入如:if(type==0)。其中type为此处可以访问的一个unsigned int类型的变量。还可以其它的参数,看具体的需要了。