Re: New module

From: Date: Mon, 10 Nov 2003 19:35:05 +0000
Subject: Re: New module
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169078@lists.php.net to get a copy of this message
Jonis Maurin Ceara wrote:
Hello I'm planing to build a module for debuging like i use in my programs... i can explain... i just wanna do debug some lines from my script, just to know any var or line....and i'll use this function: debug() function debug() will display line number and filename....this is the problem! how can i get __LINE__ and __FILE__ constants from my module code? and i plan to create debugvar($var) too.... is possible to get this var on my module code too??
In php <= 4.3.2 you need to pass the information to the function: debugvar($var, __FILE__, __LINE__); In php >= 4.3.3 you can use debug_backtrace() function, check the manual.

« previous php.general (#169078) next »