in reply to a perldbg question about breaks

perldebug#b [file]:[line] [condition] ?

NB: The condition is optional.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: a perldbg question about breaks
by LanX (Saint) on Oct 27, 2020 at 17:08 UTC
    OK you explicitly asked about the "package" not the "file". But that's not how it works because the same package can be present in different files. (think of main:: for instance)

    Assuming the normal case that the package scope is only in one single file...

    If this is only a one-time application, finding the correct file-path shouldn't be a problem.

    Otherwise one could write an alias which finds the filename for a provided package and sets the breakpoint.

    Compare also %INC which lists the filenames for used modules.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      ALL replies are ++'s guys TY. I never knew about the f command...

      Bless you all (into the class of angels!)