[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
perl5db questions..
All,
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 perl5db.pl 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
prompt)
Thanks much for any pointers,
Ed
- Follow-Ups from:
-
Nicholas Clark <nick@ccl4.org>
Richard Foley <Richard.Foley@rfi.net>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]