-
Notifications
You must be signed in to change notification settings - Fork 1
hanumantmk/DebugPerlAttach
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
DebugPerlAttach
===============
This project is mostly possed of a script 'debug_perl' that can be used to wrap
up:
o attaching to the perl binary with gdb
o Running arbitrary code in the attached process such as:
o Enbugger
o Carp::longmess
o Attaching to a locally running socket service to receive input
Thus our dependencies are:
o gdb
o Enbugger
o a multi-threaded version of perl (this could be fixed, but right now I assume
that API)
it's invoked as so: ./debug_perl --[debugger|stack-trace|custom] PID
feel free to play, then 'continue' and ctrl+c
If you want to experiment, the accompanying ./test.pl prints it's pid, writes
it to 'pid' then simply loops. Thus:
$ ./test.pl &
[1] 26012
$ 26012
./debug_perl `cat pid`
at ./test.pl line 14
main::baz(1) called at ./test.pl line 10
main::bar(1) called at ./test.pl line 6
main::foo(1) called at ./test.pl line 22
About
A perl script to attach the perl debugger to running processes like gdb -p
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published