X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?p=spider.git;a=blobdiff_plain;f=cmd%2Fshow%2Fdebug_ring.pl;fp=cmd%2Fshow%2Fdebug_ring.pl;h=9513b9655078aa58a089edfabf913ff0173ad62d;hp=272da35c2bb7d69ca86a07f391c5d7e33ac146d8;hb=8ce11d49e52f2ae6ed3c0ddf2a54b2941544acc3;hpb=dbeecf2c5b0e87c38b52edf992d41b122a676fcd 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.});