Inserting a File Breakpoint in a Source Window

The most intuitive type of breakpoint in a source window is the file breakpoint. A file breakpoint is set at a location in the source file.

File breakpoints can be set on a source line or a statement. If the step unit is set to Line, the breakpoint is set at the beginning of the line and corresponds to the first complete statement on the line. If the step unit is set to Statement, the breakpoint is set at the specified character on the line and corresponds to the statement at that location.

To insert a file breakpoint in a source window

  1. In the source window, click the line and character where you want to insert the breakpoint.
  2. On the Debug toolbar, click the Insert Breakpoint button.

    -or-

    Right-click and choose Insert Breakpoint from the shortcut menu.

    Note   If you try to set a breakpoint on a line that does not contain executable code, the debugger automatically moves the breakpoint to the next line that contains executable code. (If debugging is stopped, this movement does not occur until you start debugging.) You cannot set a breakpoint inside an attribute. If you try to set a breakpoint on an attribute, the debugger automatically moves the breakpoint to the next line that contains executable code.