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

Re: finding source position of function

by chromatic (Archbishop)
on Aug 13, 2012 at 22:43 UTC ( #987233=note: print w/ replies, xml ) Need Help??


in reply to finding source position of function

Sub::Information can give you the start line. Adding the end line is relatively easy (it's a one-liner).

With that said, it's easy enough to lie to Perl about line numbers.


Comment on Re: finding source position of function
Replies are listed 'Best First'.
Re^2: finding source position of function
by LanX (Canon) on Aug 14, 2012 at 14:08 UTC
    Thanks for the valuable information!

    Actually I was hoping to find a Core-approach w/o such dependencies.

    Luckily I'm only trying to extend the debugger features, where I can do it out of the box.

    It turned out %DB::sub holds the neccessary informations... :)

    Cheers Rolf

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2015-07-29 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls