Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-ebug CPAN distribution.

Report information
The Basics
Id: 28007
Status: resolved
Priority: 0/
Queue: Devel-ebug

People
Owner: awwaiid [...] thelackthereof.org
Requestors: faiz.kazi [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Devel::ebug::Console: Possible typo that prevents codelines from getting cached (and slows down show_codelines)
Date: Fri, 6 Jul 2007 16:16:22 +0900
To: bug-Devel-ebug [...] rt.cpan.org
From: "Faiz Kazi" <faiz.kazi [...] gmail.com>
Hullo, Thanks so much for having written ebug; it's been extremely useful to me already, though I just starting using it last week. I was trying out ebug over a slow network (a process running with -d:ebug::Backend on a server, and a remote client (see below for the client script)). When using the "l" command in the client debugger console, it seems that all lines of the current source file are being pulled across the network, though show_codelines (Console.pm, line 157 in the latest release) is making efforts to cache the source for each file. This means that when I step into a subroutine defined in a file that has a large number of lines, showing the code-lines is very slow (especially if "L" is toggled) I think that a possible typo (see attached diff) may be the cause for this. Distribution: Devel-ebug-0.48 Module: Devel::ebug::Console; Perl Version: 5.6, 5.8.8 (any version actually) OS: Linux 2.6.20 (Debian unstable) and Linux 2.4.x RHEL3 For the client script I basically used ebug-client, except that: foreach ( 1 .. 10 ) { $socket = IO::Socket::INET->new( # Connect to a debugee far, far away PeerAddr => $ARG->{host} || 'localhost', PeerPort => $ARG->{port}, Proto => 'tcp', Reuse => 1, ReuserAddr => 1, ); last if $socket; sleep 1; } Thanks, Fuzz

Message body is not shown because sender requested not to inline it.

Ah yes, I see what you mean with the missing hashref. I've updated the code and the fix will go out in the next release. --Brock On Fri Jul 06 03:16:39 2007, faiz.kazi@gmail.com wrote: Show quoted text
> Hullo, > > Thanks so much for having written ebug; it's been extremely useful to > me already, though I just starting using it last week. > > I was trying out ebug over a slow network (a process running with > -d:ebug::Backend on a server, and a remote client (see below for the > client script)). > > When using the "l" command in the client debugger console, it seems > that all lines of the current source file are being pulled across the > network, though show_codelines (Console.pm, line 157 in the latest > release) is making efforts to cache the source for each file. This > means that when I step into a subroutine defined in a file that has a > large number of lines, showing the code-lines is very slow (especially > if "L" is toggled) > > I think that a possible typo (see attached diff) may be the cause for this. > > Distribution: Devel-ebug-0.48 > Module: Devel::ebug::Console; > Perl Version: 5.6, 5.8.8 (any version actually) > OS: Linux 2.6.20 (Debian unstable) and Linux 2.4.x RHEL3 > > > For the client script I basically used ebug-client, except that: > > foreach ( 1 .. 10 ) { > $socket = IO::Socket::INET->new( > # Connect to a debugee far, far away > PeerAddr => $ARG->{host} || 'localhost', > PeerPort => $ARG->{port}, > Proto => 'tcp', > Reuse => 1, > ReuserAddr => 1, > ); > last if $socket; > sleep 1; > } > > > Thanks, > Fuzz
I think this was fixed in said release.