Setting a Breakpoint in a Script

You can set a breakpoint in a script at any time, while working in either debug or design mode.

  1. Open the script in the Script Editor.
  2. Place the cursor in the line of executable code where you want to interrupt execution.
  3. Right-click the line and select Insert Breakpoint.
    PowerBuilder sets a breakpoint at the line and displays a red breakpoint icon in the margin. The red color indicates that the breakpoint is enabled. The breakpoint is also added to the Breakpoint window.

    If you select a line without executable code, PowerBuilder sets the breakpoint at the beginning of the next executable statement.