Re: sophisticated debugging idea. suggestions?

From: Date: Wed, 03 Oct 2001 17:37:34 +0000
Subject: Re: sophisticated debugging idea. suggestions?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69798@lists.php.net to get a copy of this message
Hello, what about func_num_args() func_get_arg() func_get_args() http://www.php.net/manual/en/ref.funchand.php or did I misunderstand something? BTW, do want to develop a light-weight debugger or what? ----- Original Message ----- From: <alvarez@sto13.st-oneline.de> To: <php-general@lists.php.net> Sent: Wednesday, October 03, 2001 2:03 PM Subject: [PHP] sophisticated debugging idea. suggestions? > > I want to alternate between different operation modes without having > to introduce additional control structures into a piece of software. > > This could be archieved by setting an optional parameter to a function > that does not affect the programs state. It should accept an arbitrary > number of mixed-type arguments while not causing significant overhead > at runtime. Then you would call the parameter each time the code runs. > > Assuming debugging is what you want to be done, the use would be like > > function f ($arg, $mode = 'array') { > > function debug () { echo $arg }; > $mode ($arg); > > compute (); > } > . > > array () suffices but introduces to overhead when large chunks of data > (e.g. pieces of code) are passed to it. Any suggestions on this? > > > D. Alvarez Arribas <alvarez@st-oneline.net> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#69798) next »