Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
Sometimes you just have to use the debugger and it's annoying when that happens. Why? Because sometimes the problem is buried deep in some module and you have no idea where, so you find yourself repeatedly restarting the debugger and typing this:
b 91
c
s
use Some::Module::Which::I::Couldnt::Load::Until::Now
b Some::Module::Which::I::Couldnt::Load::Until::Now::unmunge
c
<CR>
x $value
... and so on
And you keep rerunning that, refining the commands as you go along and realize you're getting closer to your goal (or you use the 't' option and let it run until done). That gets old very fast. Is there some way to script that? Maybe tell the debugger to load a series of commands or something? It doesn't seem like this should be too hard (though the debugger internals are horrifying). If this currently cannot be done and someone wants to write a patch so I don't have to
perldebug (Score:2)
Re:perldebug (Score:1)
debugger (Score:1)
I've done the lazy version of a script, copy-and-paste 20 lines of debugger commands at a time to re-run them. It's inelegant, but like you, I took a look at the debugger code and averted my eyes :)
However, I just took a glance at perldebug, and it says:
-DA [coder.com]
Re:debugger (Score:1)
http://www.perlfoundation.org/gc/grants/2003_q4.html
That would be very, very, cool if the code were available for hacking on... I haven't been able to find it, in quick google searches; I suppose I should email mjd.
-DA [coder.com]
devel::ebug? (Score:1)
Re:devel::ebug? (Score:1)
source (Score:1)
source file Execute file containing debugger commands (may nest).
So you don't need to do anything. Just put the commands you want into some file and then source file.
If you want to actually write new debugger commands, take a look at Devel::Command: it lets you write Devel::Command::XXX modules to create a new 'xxx' command. Devel::Command::Viz, for instance, lets you use GraphViz::Data::Structure to visualize objects in dotty from inside the debugge