Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
Think about Loose Coupling
 
PerlMonks  

Re: perldb: Howto trace only "my" modules?

by Kanji (Parson)
on Jan 29, 2012 at 19:43 UTC ( #950635=note: print w/ replies, xml ) Need Help??


in reply to perldb: Howto trace only "my" modules?

There's a The Effective Perler article on custom tracing entitled Trace your Perl programs that you might find useful, particularly the last example.

To summarize...

  • Under the -d switch, perl calls &DB::DB before each statement
  • You can write your own tracer (e.g., Devel::Foo) to define your own &DB::DB that excludes third-party modules, and run it via -d:Foo
  • .


Comment on Re: perldb: Howto trace only "my" modules?
Re^2: perldb: Howto trace only "my" modules?
by The Perlman (Beadle) on Jan 29, 2012 at 20:19 UTC
    Thanks for the links.

    I was aware that I can overload internal DB:: functions, (sorry for not mentioning)

    I just had the hope that I could solve this with an *option* (CLI or .perldb).

    Actually in this case I think I have to overload DB::sub like demonstrated in perldebguts

    { package DB; sub DB {} sub sub {print ++$i, " $sub\n"; &$sub} }
    Thanks anyway! :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950635]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (15)
As of 2014-04-21 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (496 votes), past polls