Debugging PLSQL in Toad

aggietech picture aggietech · Sep 18, 2012 · Viewed 48.9k times · Source

I've been creating packages for Oracle db using PL/SQL and i'm trying to find a good way to debug a PL/SQL package without using the "put_line" command, does anyone have some good tips on how to successfully debug a PL/SQL package either on Toad or SQLPlus?

Answer

wweicker picture wweicker · Oct 5, 2012

Depending on the version of TOAD, the icons and toolbars will look different, but the process is the same:

  1. Make sure the "Toggle compiling with Debug" option is turned on
  2. Click "Compile" button
      a. Set a breakpoint
  3. Click "Execute PLSQL with debugger"

Toad 9.7:

TOAD 9.7

Toad 11.6:

TOAD 11.6