The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

<!--  Presentation generated by Internet Assistant for Microsoft PowerPoint 97 -->

<HTML>
<HEAD>

<meta name="GENERATOR" content="Microsoft Internet Assistant for Microsoft PowerPoint 97">
 <TITLE>What’s new with tracing?  (since the book)</TITLE> 
</HEAD>

<BODY     >

<CENTER>
<TABLE WIDTH=100%> 
     <TR> <TD WIDTH=100% ALIGN=CENTER>
         <A HREF="sld001.htm">First</A>&nbsp;&nbsp;
         <A HREF="sld063.htm">Previous</A>&nbsp;&nbsp;
         <A HREF="sld065.htm">Next</A>&nbsp;&nbsp;
         <A HREF="sld093.htm">Last</A>&nbsp;&nbsp;
&nbsp;&nbsp;         <A HREF="index.htm">Index</A>&nbsp;&nbsp;
         <A HREF="dbi.perl.org">Home</A>&nbsp;&nbsp;
         <A HREF="tsld064.htm">Text</A>&nbsp;&nbsp;
     </TD> </TR>
     <TR> <TD WIDTH=100% ALIGN=CENTER>
         <IMG SRC="img064.gif" usemap="#Objmap" WIDTH=800 HEIGHT=600 BORDER=0>
     </TD> </TR>
</TABLE>
<P>Slide 64 of 93</P>
</CENTER>
<!-- <UL>
<H2>What’s new with tracing?  (since the book)</H2>
</UL></P>
<P><UL>
<LI><H2>Tracing fetched data
</H2>
<UL>
<LI>Trace level 1 only shows return from first and last fetch() calls
<LI>Trace level 2 only shows returns from fetch() calls
<LI>Trace level 3 shows entry and return from fetch() calls
<UL>
<LI>Those changes make it easier to use lower trace levels without drowning in data
</UL><LI>Trace for fetch() calls now show the row number
<LI>
</UL></UL><UL>
<LI><H2>Trace level can be set using an attribute
</H2>
<UL>
$h-&#062{TraceLevel}
<BR><UL>
<LI>get or set trace level of a handle
<LI>you can now use local() to set a temporary value for the current block
<UL>
 local $h-&#062{TraceLevel} = 2;
<BR></UL><LI>and you can now set the trace level via the DSN
<UL>
 “dbi:Driver(PrintError=1,TraceLevel=2):dbname”
<BR></UL></UL></UL></UL><UL>
<H2>.</H2>
</UL></P>
<P>  -->
</Body>
</HTML>