X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fdebug_ring.pl;h=9513b9655078aa58a089edfabf913ff0173ad62d;hb=2090157518d0d2da860345507680f4ad91b043a2;hp=272da35c2bb7d69ca86a07f391c5d7e33ac146d8;hpb=59bc57a3789ea433e1edb6e41c47ecf0aba95705;p=spider.git diff --git a/cmd/show/debug_ring.pl b/cmd/show/debug_ring.pl index 272da35c..9513b965 100644 --- a/cmd/show/debug_ring.pl +++ b/cmd/show/debug_ring.pl @@ -12,10 +12,12 @@ my $n; my $doclear; for (@args) { + say "arg: $_"; $n = 0+$_ if /^\d+$/; $doclear++ if /^clear$/; } -DXDebug::dbgprintring($n); +my $lines = DXDebug::dbgprintring($n); DXDebug::dbgclearring() if $doclear; +dge; -return (1, 'Contents of debug ring buffer logged. View with watchdbg.'); +return (1, qq{Contents of $lines lines of debug ring buffer logged. View with watchdbg.});