Breaking on a static method

When you break on a method, the break point is set on the first line of code in the method that contains an executable statement.

To set a breakpoint on a static method:

  1. From the Source window, choose Break→ New. The Break At window is displayed.

  2. Enter the name of a method in which you wish execution to stop. For example:

    JDBCExamples.selecter
    

    stops execution whenever the JDBCExamples.selecter( ) method is entered.

When a breakpoint is set on a method, the breakpoint is shown in the Source window by an asterisk in the left column of the line where the breakpoint actually occurs. If the Breakpoints window is open, the method is displayed in the list of breakpoints.