Browsing debug actions Editing a debug action Disabling and enabling debug actions Deleting a debug action

How To... 4-129 3. In the Source pane, select the line where you want to create the debug trigger, then choose Program Debugging Triggers or right-click in the Source pane and choose Trigger. 4. In the PLSQL Trigger dialog box, define the trigger: ■ If you want the trigger to fire at different location than the current program unit, select a location from the Location list. ■ Type the debug trigger in the Trigger Body text box. For example, to create a debug trigger that interrupts program execution if the local NUMBER variable my_sal exceeds 5000, enter the following as the trigger body: IF Debug.Getnmy_sal 5000 THEN raise Debug.Suspend; END IF; You must raise the DEBUG.SUSPEND exception from the DEBUG package if you want the PLSQL Interpreter to appear when this line is executed. Otherwise, Oracle Reports Builder executes the code silently and the PLSQL Interpreter does not appear.

5. Click OK to create a debug trigger for the selected line.

4.14.5 Browsing debug actions

To browse debug actions: ■ In the Object Navigator, expand the Debug Actions node. The Object Navigator displays a list of the debug actions associated with the current report. or ■ In the PLSQL Interpreter, use the DESCRIBE command to display information about a specific debug action. For example, entering DESCRIBE BREAK 1 in the Interpreter pane reveals the following about Breakpoint 1: Breakpoint: 1 Program Unit: Procedure Body programunit_name Line: 3 Note: Uncompiled program units are indicated by an asterisk after their name. Tip: You cannot place a breakpoint on a BEGIN, END, or NULL statement, or on a comment. Note: To create a debug trigger that contains multiple lines of text, include a BEGIN and an END statement around the code. Tip: You can also create a debug trigger by entering commands in the PLSQL Interpreter pane. 4-130 Oracle Reports Users Guide to Building Reports Enabled: YES

4.14.6 Editing a debug action

To edit a debug action:

1. In the Object Navigator, expand the Debug Actions node, then double-click the

debug action icon to display the appropriate dialog box. 2. Edit the content or properties of the debug action in the dialog box.

3. Click OK.

4.14.7 Disabling and enabling debug actions

To disableenable a debug action: ■ In the Object Navigator, under the Debug Actions node, right-click the desired debug action and choose Enable or Disable. or ■ In the PLSQL Interpreter, use the ENABLE or DISABLE command to enable or disable the specific debug action. For example, entering .DISABLE ACTION 1 in the Interpreter pane disables the first debug action and displays the following status: Disabling debug action 1...

4.14.8 Deleting a debug action

To delete a debug action:

1. In the Object Navigator, expand the Debug Actions node, then click the action

you want to delete. 2. Click the Delete button in the toolbar.

4.14.9 Running a program unit in the PLSQL Interpreter