Set a Function Breakpoint

You can set a function breakpoint, so that execution stops whenever the function is called, from any view that displays function names, declarations, definitions, or statements containing function calls. Such views include declarations views, class details views, stack views, source views, and token stream views. To set a function breakpoint, follow these steps:

  1. Position the pointer over the function you want to set a breakpoint on, or over the object that represents the function in that view.
  2. Click mouse button 2.
  3. From the resulting popup menu, select Set function breakpoint, if that choice appears. The function breakpoint is now set. (If the function is a class virtual function, choose Set virtual function breakpoint).
  4. If the Set 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 function breakpoint.

When you set a function breakpoint, a breakpoint marker is shown in the source view containing the function definition. The marker is not shown on declarations of the function.



Types of Breakpoints


Enable, Disable, or Delete Breakpoints from a Breakpoints View