Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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?

Replies are listed 'Best First'.
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?
[stevieb]: I *finally* have my automated RPi::WiringPi and related distribution automated test build system done! It's easy to use (relatively), simple to set up, and works awesome! Cycles every X mins, checks github for new commits, and builds...
[stevieb]: ...optionally displaying the results to a connected LCD with the dist name, date, time and commit of the last run along with a FAIL/PASS. Obviously I can't get CI with Travis for a RPi, so I built my own :) It'll take a couple of blog posts I think...
[stevieb]: ...to cover it all. Awesome thing is that you can dispatch ANY distribution to it (and include all revdeps if desired), and it works all the same as if I'm just testing the RPI code itself
[stevieb]: I'm rather pleased with myself and everything I've leared along this arduous and sometimes frustrating path
[stevieb]: Just need to implement an email plugin or something so I can get alerted remotely if the status of a build has changed from the last run

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-04-28 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (529 votes). Check out past polls.