Modifying code at runtime Displaying the current scope location Examining or changing local variables

4-132 Oracle Reports Users Guide to Building Reports ■ Click the Step Into button in the PLSQL Interpreter toolbar to execute the next line of executable code in the current program unit. If the next executable line is a call to a nested subprogram a program unit that is called from within another program unit, Step Into halts execution at the first line of the nested subprogram. To step over a nested subprogram call in the suspended program unit: ■ Click the Step Over button in the PLSQL Interpreter toolbar. Step Over executes any calls to nested subprograms and then halts execution at the next executable line of the current program unit. To step out of a nested subprogram and return to the outer program unit: ■ Click the Step Out button in the PLSQL Interpreter toolbar. If you previously used Step In to descend into a nested subprogram, Step Out completes execution of the nested subprogram and returns to the next line of the original program unit. To resume program unit execution: ■ Click the Go button in the PLSQL Interpreter toolbar. Execution of the program unit continues until the program unit execution has finished, or until interrupted again by another debug action. To exit suspended execution at the current debug level: ■ Click the Reset button in the PLSQL Interpreter toolbar. Control is returned to the Interpreter, or to an outer debug level if any exist.

4.14.13 Modifying code at runtime

To modify your code at runtime:

1. In the Object Navigator, double-click the desired program unit, menu item

command, or trigger to display the PLSQL Editor.

2. In the PLSQL Editor, make the desired modifications.

3. Click Compile then Close to dismiss the PLSQL Editor.

4. In the PLSQL Interpreter toolbar, choose Go or Step Into, Over, or Out to

resume program execution. See also Section 2.10.9, About modifying code at runtime

4.14.14 Displaying the current scope location

To display the current scope location: ■ In the Object Navigator, expand the Stack node, then expand the desired frame in the stack to reveal information about local variables and parameters. or Note: If your debug action is located in a PLSQL LOOP, using Go will cycle through the loop. How To... 4-133 ■ In the PLSQL Interpreter, display the Source pane to view the current scope location. See also Section 2.10.7, About the current scope location

4.14.15 Examining or changing local variables

You must currently have a suspended program unit in the PLSQL Interpreter to examine or change local variables values. To examine local variable values:

1. In the Object Navigator, expand the Stack node to show the call stack frames.

2. Under the Stack node, double-click the node for the program unit whose variables

you wish to examine or modify. Each local variable is displayed with its current value. To edit local variable values:

1. In the Object Navigator, expand the Stack node to show the call stack frames.

2. Under the Stack node, double-click the node for the program unit whose variables

you wish to examine or modify. Each local variable is displayed with its current value.

3. Click the variable value in the Object Navigator.

4. Click the variable value again to enter edit mode.

5. Change the value of the variable.

6. Click a blank area in the Object Navigator to exit edit mode and accept the

changed value.

7. Resume program unit execution in the PLSQL Interpreter to test the effect of the

new value.

4.14.16 Modifying application variables