Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

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?

0
fox_statton
Asked:
fox_statton
2 Solutions
 
floorman67Commented:
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
 
TeRReFCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now