Re: Tmux helps to debug perl fork()s

2012-12-03 Thread Rocky Bernstein
On Mon, Dec 3, 2012 at 9:06 AM, Peter Vereshagin wrote: > Hello. > > 2012/12/03 08:51:28 -0500 Rocky Bernstein => To Richard > Foley : > RB> Something I think about when I read about things like this whether > there > RB> some sort of unifying principle that could b

Re: Tmux helps to debug perl fork()s

2012-12-03 Thread Rocky Bernstein
Something I think about when I read about things like this whether there some sort of unifying principle that could be used in other debuggers or for other similar sorts of programs. Is there some support that a debugger should be providing to make things like this easier? Too often, especially w

Re: What is the history behind the DB module?

2012-09-14 Thread Rocky Bernstein
On Fri, Sep 14, 2012 at 3:47 AM, Shlomi Fish wrote: > Hi Rocky, > > On Thu, 13 Sep 2012 19:40:53 -0400 > Rocky Bernstein wrote: > > > http://perldoc.perl.org/DB.html mentions a "programmatic interface to > > the Perl debugging API". > > > > As

Re: Call perl5db or trepan.pl from re.pl

2012-09-13 Thread Rocky Bernstein
On Sat, Jan 7, 2012 at 11:42 PM (a long while ago), Rocky Bernstein > - - - > > I was looking at perl5db code and noticed that numeric value of @dbline is > its COP reference. (In trepan.pl "info program" now shows this when it is > available). I thought this would b

Call perl5db or trepan.pl from re.pl

2012-01-07 Thread Rocky Bernstein
I recently I've written Devel::REPL plugins to call a trepan or perl5db debugger from re.pl via Enbugger. If there are other plugins for this, I'd be interested to compare. https://github.com/rocky/Perl-Devel-Trepan-Shell has the code. In my repl.rc load the plugins: $_REPL->load_plugin('Trep

Re: RFC Devel::Trepan

2012-01-02 Thread Rocky Bernstein
On Sun, Dec 18, 2011 at 11:42 AM, Rocky Bernstein wrote: > With the recent release of Devel::Trepan (0.1.4), I am at a juncture of > next steps. So I thought I would solicit feedback. ... > Other miscellaneous items: > > - adding history save/restore. Term::ReadLine::Pe

Re: breakpoint bug in the debugger

2011-12-21 Thread Rocky Bernstein
rning is issued given. The breakpoint is still set - it is just a warning. There are many ways that this heuristic can fail. For example setting a breakpoint on a line with: use English; $x = 3; may "skip" the "use" and still stop on the assignment statement. On Mon, Dec 19

Re: breakpoint bug in the debugger

2011-12-18 Thread Rocky Bernstein
A while back on Tue, 31 May 2011 18:20:51 -0700 Conor wrote: Not exactly a high priority bug, but I found that if you set a breakpoint on > a line where a 'use' statement exists, the breakpoint will show as set and > the debugger won't complain: > $ perl -d breakpoint-bug.pl > Loading DB routines

RFC Devel::Trepan

2011-12-18 Thread Rocky Bernstein
With the recent release of Devel::Trepan (0.1.4), I am at a juncture of next steps. So I thought I would solicit feedback. The good news from my standpoint is that things are good enough for my needs. And I can be picky. Devel::Trepan has been tested on a number of Unix platforms thanks to CPANTS.

accelerated stepping from a old thread and Perl changes.

2011-12-03 Thread Rocky Bernstein
I was looking at old debugger list postings on "accelerated stepping". The general problem of how to make stepping feel right is a well trodden topic. So let me describe how the trepanning debuggers such as Devel::Trepan partially address this. The idea builds on something Kent Sibilev added to ru

Re: PadWalker, eval and perl5db

2011-11-23 Thread Rocky Bernstein
On Wed, Nov 23, 2011 at 8:06 AM, Brock wrote: > On Sun, 20 Nov 2011 Rocky Bernstein wrote: > > I've briefly looked at PadWalker which can look at "my" and "our" > > variables on a call stack. And while this is very useful, it is not > > the same as

PadWalker, eval and perl5db

2011-11-20 Thread Rocky Bernstein
In working on the Trepanning debugger for Perl which in large part is modernizing and modularizing perl5db, I keep running into the limitations of eval. In both Ruby and Python, one can pass arguments in addition to the string to evaluate which controls the environment or context that evaluation u

Post announcement of new debugger Devel::Trepan

2011-10-29 Thread Rocky Bernstein
As Shrek says when he first entered Duloc: ``It's quiet here... Too quiet!'' A little while ago I asked if there was a way get get some sort of object which indicates the exact position from caller. Again, line number doesn't really cut it since there can be many statements on a line. I just ran

Re: Pre announcement of yet another Perl debugger

2011-09-26 Thread Rocky Bernstein
ts on a single line. On Sep 25, 2011 11:22 PM, "Rocky Bernstein" wrote: > > With much trepidation, recently I started porting my trepanning debugger > to > > Perl. > > Perl has always had a really good debugger, so said above, I undertook > this > > with s

Pre announcement of yet another Perl debugger

2011-09-25 Thread Rocky Bernstein
With much trepidation, recently I started porting my trepanning debugger to Perl. Perl has always had a really good debugger, so said above, I undertook this with some hesitation. As someone who doesn't always work in Perl, the stock Perl debugger, perl5db.pl has always felt to me a little bit of