Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: a perldbg question about breaks

by LanX (Saint)
on Oct 27, 2020 at 16:30 UTC ( [id://11123223]=note: print w/replies, xml ) Need Help??


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!)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 04:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found