Setting a function breakpoint

You can set function breakpoints from the Modules pane, the Source menu and the Breakpoints menu.

To set a function breakpoint from the Modules pane:

  1. Expand the list in the Modules pane until you see the function you want.
  2. Right-click on that function and select Set Function Breakpoint from the pop-up menu.

To set a function breakpoint from the Source menu:

  1. Select Source > Set Function Breakpoint from the menu bar.
  2. Enter the name of the executable which contains the function where you want to set a breakpoint in the Executable entry field in the Function Breakpoint dialog. If this executable is loaded, you can select it from the pulldown list in the Executable entry field.
  3. Choose or enter the object, class or source file for the executable specified in the Executable entry field from the Source pulldown list.
  4. Enter the name of the function where the breakpoint is to be set in the Function entry field in the Function Breakpoint dialog. If this function is loaded, you can select it from the pulldown list in the Function entry field.
  5. If the executable or DLL containing the function you want to debug is not currently loaded, click on the Defer breakpoint check box.
  6. Set any optional parameters that you want for the breakpoint.
  7. Click OK to set the breakpoint and dismiss the Function Breakpoint dialog. Alternatively, use the Set button to set the breakpoint without dismissing the Function Breakpoint dialog.

To set a function breakpoint from the Breakpoints menu:

  1. Select Breakpoints > Set Function from the menu bar.
  2. Enter the name of the executable which contains the function where you want to set a breakpoint in the Executable entry field in the Function Breakpoint dialog. If this executable is loaded, you can select it from the pulldown list in the Executable entry field.
  3. Choose or enter the object, class or source file for the executable specified in the Executable entry field from the Source pulldown list.
  4. Enter the name of the function where the breakpoint is to be set in the Function entry field in the Function Breakpoint dialog. If this function is loaded, you can select it from the pulldown list in the Function entry field.
  5. If the module or routine you entered in the Executable entry field is not currently loaded, click on the Defer breakpoint check box.
  6. Set any optional parameters that you want for the breakpoint.
  7. Click OK to set the breakpoint and dismiss the Function Breakpoint dialog. Alternatively, use the Set button to set the breakpoint without dismissing the Function Breakpoint dialog.

ngrelc.gif (533 bytes)
Breakpoints

Related Tasks
Setting multiple breakpoints
Setting a conditional breakpoint
ngaix.gif (307 bytes)ngwin.gif (301 bytes)Modifying breakpoint properties
Enabling and disabling breakpoints
Deleting a breakpoint
Viewing breakpoints