Here's my page

Hover over dpDebug in the top-right to see the deb log

cause an error

download dpDebug

Source:
<?php

 
include("dpdebug.php");

 function 
debsql($q){
  
deb($q,6,"MySQL Query");
  
//$result = mysql_query($q);
  
$result 0// we're not actually connecting to anything in this demo
  // if ($e = mysql_error()) deb($e,1,"MySQL Error");
  
return $result;
 }
 
 
deb("Reading configuration",5);
 
// loadconfig();

 
$a $b// undefined variable $b

 
if (isset($_GET['error'])){
  
mysql_connect("nowhere","nobody","") or deb("Unable to connect to data source",1);
 }

 
$result debsql("SELECT `cup` from `table` where `contents` = 'coffee'");

?>
<h1>Here's my page</h1>
<p>Hover over dpDebug in the top-right to see the deb log</p>
<p><a href='demo.php?error=1'>cause an error</a></p>
<p><a href='http://www.defproc.co.uk/dpDebug/dpDebug012.rar'>download dpDebug</a></p>
Source:<br>
<code>
<?php

 highlight_string
(file_get_contents("demo.php"));

?></code>

dpDebug