Set Breakpoints Before Debugging

You can set most types of breakpoints in a project before you even start debugging, for example as soon as you have written the code for a function and have rebuilt the project. When you start a debug process for the project, these breakpoints affect that process. Note that an entry point breakpoint is automatically set at the entry point to the main function of your executable.

To set a breakpoint before debugging, do the following:

  1. In the view containing the object (function, statement, class, or variable) you want to set a breakpoint on, click mouse button 2 over that object.
  2. If a choice to set the appropriate breakpoint is shown on the resulting popup menu, select that choice. Otherwise:
  3. Select the menu item that identifies the object; a cascading menu is displayed. If a breakpoint can be set for the object, a breakpoint or watchpoint menu choice appears. Select this.

Note that class instance breakpoints and watchpoints cannot be set before starting a debug session.

Each breakpoint is enabled when you set it, even when you have disabled the "All breakpoints" breakpoint in a Breakpoints view.

Further information on setting specific types is available in the Procedures help for each type of breakpoint.



Debugging in the VisualAge Integrated Development Environment
Types of Breakpoints


Enable, Disable, or Delete Breakpoints from the Breakpoints View
Set a Template Class Breakpoint
Set a Class Breakpoint
Set a Class Instance Breakpoint
Set a Function Breakpoint
Set a Statement Breakpoint
Set a Virtual Function Breakpoint
ngos2.gif (402 bytes)ngwin.gif (1069 bytes)Set a Watchpoint
Set an Instruction Breakpoint