This illustration shows the first steps in the target session:

First, initialize the session for debugging, and generate or specify the unique debugID. DBMS_DEBUG.initialize()

Then, start debugging using DBMS_DEBUG.debug_on() or stop debugging using DBMS_DEBUG.debug_off(). Then, execute the PL/SQL program.