Display actual error in code....?

Hi all,
Is there anyway to have PHP display the actual line of code causing problems, rather than just a line number?

fox_stattonAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
floorman67Connect With a Mentor Commented:
no php wont do that for you via script, but the error code and line nubmber help you ALOT in tracking down the problem.

it is easy to find the line number with any script editor that segments and lists the code line number by line number.

I use Web Builder 2005 ... http://www.blumentals.net/webuilder/

they have a free trial you can test out.

I am sure there are free ons around that do the same thing or similar.

0
 
TeRReFConnect With a Mentor Commented:
You could use debug_backtrace() to provide you with extra information. You can add it in a trigger_error() event.
http://php.net/debug_backtrace
http://php.net/trigger_error
0
 
AmigoJackCommented:
oh please... have you ever considered pressing CTRL+G in notepad/editor?

more helpful could only be self-healing-php-scripts ;-)
0
All Courses

From novice to tech pro — start learning today.