develooper Front page | perl.perl5.porters | Postings from October 2008

perl5db questions..

Thread Next
Edward Peschko
October 29, 2008 04:22
perl5db questions..
Message ID:

I was wondering - exactly how does the perl5 debugger interact with
perl (the executable?)

Basically, what I'm trying to do is write my own trace function, where
I can instrument my code with a start_trace function and a stop_trace
function in such a way that I can

    - run a program with the debug flag
    - hit 'c' to record all the actions between the start_trace and
stop_trace functions, non-interactively.

So far so good, but I'm looking through and it doesn't tell
the whole story. I don't see where $DB::single is intercepted (to stop
the execution) or why 'n' calls DB::DB wheras 'c' does not (for
example), or how $DB::trace is working with watchpoints.I don't even
see where the code itself is executed.

So what parts am I missing inside the C source code itself that isn't
in perl5db? I'm trying to run perl itself, debugging a perl script,
through a debugger (gdb) but so far no luck (it hangs at the command

Thanks much for any pointers,


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About