PL/SQL debugger
Step through a procedure, function or package line by line, see every variable, and find the bug: Felix debugs PL/SQL in the database, from a Test Window with your values.
Debug a procedure in three steps
- Open the procedure's Test Window (right-click it in the Object Browser › Test) and enter the values of its parameters.
- Press Debug (F9). When the unit has no debug information, Felix offers Compile for Debug.
- Felix pauses on the first line of the procedure: step with F7 (Step Into), F6 (Step Over) and Shift+F7 (Step Out), or Run to Cursor (Ctrl+F7).
Everything you need while paused
- Breakpoints in the margin, with a condition and the hit to stop from
- Hover a variable to see its value; the Variables in scope, with the values the last step changed in red
- Watches, kept for next time, and Evaluate
- The Call Stack: click a frame to see its line and variables
- The debugger in a window of its own, for example on a second monitor
Test Window: run a procedure with your values
The Test Window writes the anonymous block that calls the procedure or function, with a row per parameter for its value. After the run it shows the OUT values, the function's return value and the rows of a returned cursor. Save a test case and run it again later, prepare and remove test rows with SQL before and after, and profile the run with DBMS_PROFILER.
What the database needs
The DEBUG CONNECT SESSION privilege, and DEBUG (or DEBUG ANY PROCEDURE) for units of other schemas. Felix works with Oracle 11g to 23ai, through Oracle's Instant Client.
procedure apply_discount(p_order_id number) is v_total orders.total_amount%type; begin select total_amount into v_total from orders where order_id = p_order_id; if v_total > 1000 then
| Variable | Value |
|---|---|
| P_ORDER_ID | 10484 |
| V_TOTAL | 2910.75 |
Try it on your own database
Felix is a Windows IDE for Oracle SQL and PL/SQL, from 11g to 23ai. Every feature is in the free 30-day trial; no account needed.