Set a Statement Breakpoint

You can set a statement breakpoint from any view that displays source language statements, including source views and token stream views. To set a statement breakpoint, follow these steps:

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

If no Set breakpoint or Set statement breakpoint choice appears, or if an error message is displayed in the message area when you try to set the breakpoint, you may not be able to set a statement breakpoint on the statement. For example, you cannot set a statement breakpoint on a function declaration, because the function declaration is never executed.



Types of Breakpoints


Set a Statement Entry Breakpoint
Set a Statement Initializer Breakpoint
Set a Statement Exit Breakpoint
Enable, Disable, or Delete Breakpoints from a Breakpoints View
Set Breakpoints Before Debugging
Set Breakpoints Within Debug Pages