The Perlman has asked for the wisdom of the Perl Monks concerning the following question:
interactive example (could be fully automated)sub a { b(@_) } sub b { return map { $_ +1 } @_; } print a (1,2,3)
perl -d tst.pl Loading DB routines from perl5db.pl version 1.3 Editor support enabled. Enter h or `h h' for help, or `man perldebug' for more help. Package /tmp/tst.pl. DB<3> o f=31 frame = '31' DB<4> c in @=main::a(1, 2, 3) from /tmp/tst.pl:9 in @=main::b(1, 2, 3) from /tmp/tst.pl:2 out @=main::b(1, 2, 3) from /tmp/tst.pl:2 list context return from main::b: 0 2 1 3 2 4 out @=main::a(1, 2, 3) from /tmp/tst.pl:9 list context return from main::a: 0 2 1 3 2 4
my only problem is how to avoid in deep tracing of third-party modules I use.
is there any option where I can provide a pattern which modules/subs/file-pathes to trace and which to ignore?
Could also be useful for automatic distinction between step-in /step-over when single-stepping...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perldb: Howto trace only "my" modules?
by Kanji (Parson) on Jan 29, 2012 at 19:43 UTC | |
by The Perlman (Scribe) on Jan 29, 2012 at 20:19 UTC | |
Re: perldb: Howto trace only "my" modules?
by Khen1950fx (Canon) on Jan 30, 2012 at 02:21 UTC | |
Re: perldb: Howto trace only "my" modules?
by Anonymous Monk on Jan 29, 2012 at 19:38 UTC | |
by The Perlman (Scribe) on Jan 29, 2012 at 20:20 UTC |