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

Re: Modulino, perl -d question.

by LanX (Cardinal)
on Feb 20, 2012 at 18:35 UTC ( #955122=note: print w/replies, xml ) Need Help??

in reply to Modulino, perl -d question.

>At this stage caller returns a valid value (rather than undef) and main is not called. :-(

Not reproducable, for me caller is equally false, when run under the debugger.

I'm not sure what you want to debug ... main() or your test suite?

IMHO there are good reasons for both cases.

So maybe you should explicitly check if you are running under the debugger, eg. by checking if &DB::DB is defined.

like that you can provide a run argument to decide which branch exactly should be debugged.

Cheers Rolf

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2020-12-02 00:36 GMT
Find Nodes?
    Voting Booth?
    How often do you use taint mode?

    Results (26 votes). Check out past polls.