rockyb has asked for the wisdom of the Perl Monks concerning the following question:
O great Perl Monks —
I beg forgiveness yet again. I make mistakes which is why debuggers are important to me.
What I cite below always gives the first COP on a line. This is not necessarily the place you are stopped at. And this was the whole point of this.
Again for reference....
I beg forgiveness for my feeble mind. I now realize I somewhat had the answer before me all along, but had somewhat lost the courage of conviction.
The answer I seek is in the value of the numeric value of @DB::dbline array. I don't recall the meditation yielding this, let alone if this is part of a public API or an implementation artifact that should not be relied upon. For this, I seek further guidance.The below is for reference:
Persuing one of the avenues described in Identifying a location with finer granularity than a line number, I ponder how to get the B:OP Code address (analogous to a Program Counter in Assembly Code) in a running Perl program?
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I get the current OP address (akin to PC)?
by Khen1950fx (Canon) on Aug 18, 2012 at 18:30 UTC | |
by rockyb (Scribe) on Aug 18, 2012 at 23:27 UTC | |
Re: How can I get the current OP address (akin to PC)?
by flexvault (Monsignor) on Aug 18, 2012 at 17:49 UTC | |
Re: How can I get the current OP address (akin to PC)?
by CountZero (Bishop) on Aug 18, 2012 at 19:40 UTC | |
by rockyb (Scribe) on Aug 18, 2012 at 23:14 UTC | |
by CountZero (Bishop) on Aug 19, 2012 at 07:43 UTC | |
by rockyb (Scribe) on Aug 19, 2012 at 13:21 UTC | |
Re: How can I get the current OP address (akin to PC)?
by rockyb (Scribe) on Sep 11, 2012 at 01:06 UTC | |
by rockyb (Scribe) on Mar 19, 2014 at 02:03 UTC |