Re: Display line-numbers of funktion calls?
| From: | Chris Boget | Date: | Fri, 11 Apr 2003 20:53:13 +0000 |
| Subject: | Re: Display line-numbers of funktion calls? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143575@lists.php.net to get a copy of this message | ||
> does anyone know a way to get the file and line number of a function call
> within the called function?
> I use a self-written class for database-abstraction (for easily changing the
> databse-type) and when i get a sql-error, the scripts are only displaying
> the line number of the include-file with the class, wich complicates
> debugging quite much.
I'm not sure I understand exactly what you are looking for, but have you
read into __FILE__ and __LINE__?
Chris