If you're writing your own perl debugger you might
want to look at the perldebguts
document (I believe it was published from 5.6.0)
which explains the debugger internals.
--
I knock my pate and fancy wit will come
Knock as I please, there's no one at home
a pontiff paraphrased