Direct Database Debugging Mode

Direct Database Debugging mode allows you to debug PL/SQL programs by using the Step Into command from either a PL/SQL program node in Server Explorer or a PL/SQL program source window.

Before debugging starts, Oracle Developer Tools saves and recompiles the PL/SQL program if the PL/SQL program is updated in Oracle Developer Tools, but has not yet been saved in the database.

This section includes the following topics:

Requirements for Direct Database Debugging Mode

Prior to using Direct Database Debugging, perform all the setup requirements listed in PL/SQL Debugging Setup.

Debugging a PL/SQL Program Directly

This section describes how to debug a PL/SQL program directly. You can begin by executing either the Step Into or Run Debug command.

Both the Step Into and Run Debug command launch the Oracle PL/SQL Debugger:

To begin debugging a PL/SQL program, do one of the following:

When execution stops, in the PL/SQL program you can proceed to debug the PL/SQL program. See Common PL/SQL Debugger Operations.

See Also PL/SQL Program Refresh Behavior |Stepping Through a PL/SQL Program

Behavior for PL/SQL Programs Compiled Without Debug Information

If you execute the Step Into or Run Debug commands on a PL/SQL program that is not compiled with debug information, a message box appears indicating this, and asks if you want to compile it with debug information.

Description of the illustration compiled_without_dbg.gif

Depending on your response, the Oracle PL/SQL Debugger behaves as follows:

Cancel: If you select Cancel or close the message box, then no action is performed and the debugging session is canceled.

No: If you select No, then the code executes and does not compile with debug information.

The execution does not stop at the beginning or at the breakpoints inside the PL/SQL program. However, if this program calls another PL/SQL program that has been compiled with debug information, then the execution stops at the breakpoints set in the that program.

Yes: If you select Yes, then the program is recompiled with debug information, it is launched, and the execution stops at the beginning of the program.

See Also Stepping Through a PL/SQL Program