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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to