[thelist] Tips tricks and troubleshooting

Erik Mattheis gozz at gozz.com
Mon Feb 24 11:37:01 CST 2003


On Monday, February 24, 2003, at 11:20  AM, Andrew Maynes wrote:
> Like putting in code that will return some info that indicates you
> need to
> change it?

You and me both, assuming PHP. Finding the real line number of an error
is a pain; I see no relation to the line numbers in BBEdit. I've been
peppering my code with in lines like:

if ($_GET['dubug'] ) { echo("this is line 21<br />");}

... so *.php?debug=1 spits out the real lines and helps narrow it down.

and as the first line of every page:

error_reporting(E_ALL);

-----------------------
Erik Mattheis
GoZz Digital
<http://goZz.com/>
Flash and ColdFusion Development
Minneapolis, MN
-----------------------




More information about the thelist mailing list