Set a Virtual Function Breakpoint

You can set a virtual function breakpoint from any view that displays the virtual function as a declaration or definition, or in a statement, including declaration views, class details views, stack views, source views, and token stream views. When you set a virtual function breakpoint, a breakpoint is set both in the function in the class itself, and in any overrides of that function in derived classes. To set a virtual function breakpoint, follow these steps:

  1. Position the pointer over the virtual function you want to set a breakpoint on, or over the object that represents the virtual function in that view.
  2. Click mouse button 2.
  3. From the resulting popup menu, select Set virtual function breakpoint, if that choice appears. The function breakpoint is now set.
  4. If the Set virtual function breakpoint choice does not appear, select the object on the popup menu.
  5. From the cascading menu that appears beside the object, select Set virtual function breakpoint.


Types of Breakpoints


Enable, Disable, or Delete Breakpoints from a Breakpoints View
Set a Function Breakpoint