in reply to Unbelievably Obvious Debugging Tip
I even always use Data::Dumper for debugging output. So I can also spot (invisible) control characters, and I can also dump complex data structures for free. To safe key strokes I use an emacs macro for this:
(defun perl-insert-data-dumper () (interactive) (insert "require Data::Dumper; print STDERR \"Line \" . __LINE__ . \ +", File: \" . __FILE__ . \"\\n\" . Data::Dumper->new([],[])->Indent(1 +)->Useqq(1)->Dump; # XXX\n") (forward-char -40) ) (define-key global-map [C-f12] 'perl-insert-data-dumper)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Unbelievably Obvious Debugging Tip
by demerphq (Chancellor) on Apr 27, 2004 at 20:12 UTC | |
Re: Re: Unbelievably Obvious Debugging Tip
by tinita (Parson) on Apr 27, 2004 at 15:08 UTC |
In Section
Meditations