shushu has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
When working with the standard debugger (perl5db.pl) and executing a script that call a package ("use momo;"), the first line the debugger stops on is after the compilation.

When working with Devel::Trace, on the other hand, you get to see the first pass on the code, inclusing the call to the package itself.

I want to skip the compilation part when using Devel::Trace. Trying to look into perl5db.pl all I saw was the remark:
    # _After_ the perl program is compiled, $single is set to 1:
In the beginning of sub DB, but I could not determine where $single gets its value.

Anyone can help ?
TIA,
shushu

Replies are listed 'Best First'.
Re: Devel::Trace to skip compilation
by shushu (Scribe) on Oct 17, 2002 at 09:53 UTC
    Well, it seems that reading perldebguts gave me what I wanted - the knowledge regardig to DB::postponed and such.

    But it did not give me the solution, since my situation is a bit more complicated:
    I need to enable the debugger while running via Safe::rdo.
    To enable the debugger - no problem. Just do $Devel::Trace::TRACE = 1;
    But how the hell can I say in this point not to debug the compilation time ???
    It seems that via Safe the sub postponed is not called at all !!!

    TIA,
    shushu