[Bioperl-l] RootI->debug method
Ewan Birney
birney@ebi.ac.uk
Wed, 10 Oct 2001 10:10:54 +0100 (BST)
On Tue, 9 Oct 2001, Jason Eric Stajich wrote:
> I'd like to propose a new method to RootI called 'debug' or 'debug_print'
> which will print the input string to STDERR if $self->verbose > 0.
>
> People should be able to embed debugging messages in their code and have
> it turned off or on based on the verbose flag without having to do all the
> protecting themselves (ala ->
> if ( $self->verbose ) {
> $self->warn("Message for debugging");
> }
>
>
> Sound okay?
Sounds great.
I'd also like to suggest a
->deprecrated("meesage")
method that works like warn, but indicates the line number of the calling
function. helpful as we deprecate functions and want to give client code a
straight to where to edit this deprecated function
>
> --
> Jason Stajich
> Duke University
> jason@cgt.mc.duke.edu
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l
>
-----------------------------------------------------------------
Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
<birney@ebi.ac.uk>.
-----------------------------------------------------------------