[Bioperl-l] out or toString method

Kris Boulez Kris.Boulez@algonomics.com
Mon, 10 Dec 2001 09:36:51 +0100


Quoting Chad Matsalla (chad@sausage.usask.ca):
> 
> On Fri, 7 Dec 2001, Ewan Birney wrote:
> > I am not against this, but I have seen this sort of thing get abused.
> 
> I understand. I would suggest is as an efficient debugging tool.
> 
Something I want to suggest as an aid in debugging is to add an
additional (optional) debugging level to the debug method.
  
  # the following will only be printed if ($object->verbose >= 5)
  $object->debug("debug output", 5); 


I got the idea from Spong (http://spong.sourceforge.net/), where this
turns out to be an invaluable aid in findings bugs/problems.

Kris,  
-- 
Kris Boulez 				Tel: +32-9-241.11.00
AlgoNomics NV 				Fax: +32-9-241.11.02
Technologiepark 4 			email: kris.boulez@algonomics.com
B 9052 Zwijnaarde 			http://www.algonomics.com/