Location: PHPKode > scripts > debugHelper > examples/exampleErrorHandler.html
<html>
<html>
<head>
<style type="text/css">
.dbgError{ 
   border: 1px solid black;   
   background: #B8B8B8;
}
.dbgError .dbgDump {
   background: #F7E885;
}
.dbgError .dbgSource {
    background: white;
}

</style>
</head>
<body>

<br />
<div class="dbgError"><strong>Warning: </strong>join(): Bad arguments. in <strong>M:\Development\webhome\php\projects\debughelper\examples\exampleErrorHandler.php</strong> on line <strong>50</strong><br />
<em> [debugHelper.php : 1074]</em><em> [exampleErrorHandler.php : 50]</em>
<div class="dbgSource"><div style="white-space: nowrap;"><span style="width:45px; color:#0000BB;">49</span></font><font color="#FF8000">// warning
</div><div style="white-space: nowrap;"><span style="width:45px; color:#0000BB;">50</span></font><font color="#0000BB">join</font><font color="#007700">(</font><font color="#DD0000">''</font><font color="#007700">, </font><font color="#DD0000">"warning"</font><font color="#007700">); 
</div><div style="white-space: nowrap;"><span style="width:45px; color:#0000BB;">51</span>
</div></div></font></span></div><br />
<div class="dbgError"><strong>Notice: </strong>Undefined offset:  6 in <strong>M:\Development\webhome\php\projects\debughelper\examples\exampleErrorHandler.php</strong> on line <strong>54</strong><br />
<em> [debugHelper.php : 1074]</em><em> [exampleErrorHandler.php : 54]</em>
<div class="dbgSource"><div style="white-space: nowrap;"><span style="width:45px; color:#0000BB;">53</span></font><font color="#0000BB">$notice </font><font color="#007700">= array(</font><font color="#0000BB">1</font><font color="#007700">,</font><font color="#0000BB">3</font><font color="#007700">,</font><font color="#0000BB">4</font><font color="#007700">,</font><font color="#0000BB">6</font><font color="#007700">);
</div><div style="white-space: nowrap;"><span style="width:45px; color:#0000BB;">54</span>echo </font><font color="#0000BB">$notice</font><font color="#007700">[</font><font color="#0000BB">6</font><font color="#007700">];
</div><div style="white-space: nowrap;"><span style="width:45px; color:#0000BB;">55</span>
</div></div></font></span><div class="dbgDump">$notice = <strong>array[4] <a name="open1"> {</a></strong><a href="#close1">&darr;</a><br />
&nbsp;&nbsp;&nbsp;&nbsp;0 => int(1)<br />
&nbsp;&nbsp;&nbsp;&nbsp;1 => int(3)<br />
&nbsp;&nbsp;&nbsp;&nbsp;2 => int(4)<br />
&nbsp;&nbsp;&nbsp;&nbsp;3 => int(6)<br />
<strong><a name="close1">} </a></strong><a href="#open1">&uarr;</a></div></div><br />
<div class="dbgError"><strong>Warning: </strong>Missing argument 1 for a() in <strong>M:\Development\webhome\php\projects\debughelper\examples\exampleErrorHandler.php</strong> on line <strong>41</strong><br />
<em> [debugHelper.php : 1074]</em><em> [exampleErrorHandler.php : 41]</em><em> [exampleErrorHandler.php : 56]</em>
<div class="dbgSource"><div style="white-space: nowrap;"><span style="width:45px; color:#0000BB;">40</span>
</div><div style="white-space: nowrap;"><span style="width:45px; color:#0000BB;">41</span></font><font color="#007700">function </font><font color="#0000BB">a</font><font color="#007700">(</font><font color="#0000BB">$a</font><font color="#007700">) {
</div><div style="white-space: nowrap;"><span style="width:45px; color:#0000BB;">42</span>&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">b</font><font color="#007700">();
</div></div></font></span></div><p>Won't be caught...
Return current item: debugHelper