What’s new with tracing? (since the book)
Tracing fetched data
- Trace level 1 only shows return from first and last fetch() calls
- Trace level 2 only shows returns from fetch() calls
- Trace level 3 shows entry and return from fetch() calls
- Trace for fetch() calls now show the row number
-
Trace level can be set using an attribute
$h->{TraceLevel}
- get or set trace level of a handle
- you can use local() to set a temporary value for the current block
local $h->{TraceLevel} = 2;
- and you can now set the trace level via the DSN
“dbi:Driver(PrintError=1,TraceLevel=2):dbname”