I apologize for not giving more background. I was afraid of boring and burying people in too much detail.
But yes, you are correct. Although I think of this as something interesting and useful in of itself, my particular interest is in adding to the %DB::subs hash that information that it would normally get if debugging were set up initially.
When one uses Enbugger or manages to call a debugger inside a running program that wasn't set for debugging at the outset, it is desirable to reconstruct the structures, possibly on demand, that would have been gathered if Perl were set to debug at the outset.
It's possible jjore will beef up Enbugger to add this information. And if he does, I have no doubt that he'll do a better or more thorough job than the approaches suggested here so far. But on the other hand, it would be good to explore and have other possibilities to create the information on demand too.
In reply to Re^3: How to get line ranges of subroutines from Perl source code
by rockyb
in thread How to get line ranges of subroutines from Perl source code
by rockyb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |