Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by Kanji (Parson)
on Jan 29, 2012 at 19:43 UTC ( [id://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
  • .

Replies are listed 'Best First'.
Re^2: perldb: Howto trace only "my" modules?
by The Perlman (Scribe) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://950635]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-03-19 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found