http://www.perlmonks.org?node_id=924268

PerlOnTheWay has asked for the wisdom of the Perl Monks concerning the following question:

AFAIK break point can only be set at assembly instruction level with ptrace, and that's what happens when we set a bp on a specific line of C code because gdb understands c well enough that it knows at which instruction to set the bp.

But how does perl debugger work? It needs to somehow know the exact instruction for the bp set on a perl statement.

How is that done?