When you use Data Studio, you can examine debugging information through several debugging tabs. This section describes how to check the debugging information:
The Variables pane is used to monitor information or evaluate values. The Variables pane can be opened from the minimized window panel. Using this pane, you can evaluate or modify variables or arguments in a PL/SQL function. As you step through the code, the values of some local variables may change.
The content of the Variables pane can be copied to the clipboard using Alt+K.
You can double-click the corresponding row of the variable and manually change variable values during run-time.
Click the Variable, Datatype, or Value column in the Variables pane to sort the values. For example, to change the value of the percentage variable from 5 to 15, double-click the corresponding row in the Variable pane. The Set Variable Value dialog box will be displayed, which prompts you to input the variable value. Input the variable value and click OK.
To set NULL as a variable value, enter NULL or null in the Value column.
If the variable is read-only, it will be indicated by beside the corresponding variable.
Users cannot update these variables. A variable declared as a constant will not be shown as read-only in the Variables pane. However, while updating it, an error will occur.
Setting/Displaying Variables |
Description |
---|---|
Setting NULL Values |
|
Configuring String Values |
Configure the string values as follows:
|
Setting Boolean Values |
Enclose the boolean values t or f within single quotes. To set t to a boolean variable, enter 't' in the Variables pane. |
Displaying Variable Value |
If the variable value is NULL text, it will be displayed as NULL. If the variable value is NULL, it will be displayed as empty. If the variable value is a string, for example, abc, it will be displayed as abc. |
The Result tab displays the output for the PL/SQL debugging session, with the corresponding function/procedure name at the top of the tab. The Result tab will appear automatically, only if there is a result for the executed PL/SQL program.
You can copy the content of the Result tab, by clicking . For details, see Working with SQL Terminals.