Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: a perldbg question about breaks

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


in reply to Re: a perldbg question about breaks
in thread a perldbg question about breaks

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

Replies are listed 'Best First'.
Re^3: a perldbg question about breaks
by misterperl (Pilgrim) on Oct 27, 2020 at 17:20 UTC
    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://11123224]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found