Yup, I want to know how debugger works.
I'm very familiar with its usage.
Every debugger needs to call ptrace finally, how does the bridge between Perl code and assembly work?
| [reply] [d/l] |
Every debugger needs to call ptrace
Hardly.
- For a start, ptrace is a linux api.
Do you think other operating systems don't have debuggers?
- Secondly, ptrace (or an equivalent) is only required if your are tracing at assembler level.
Perl's debugger operates at the perl opcode level, each of which may represent many hundreds or thousands of assembler instructions.
ptrace is not used by perl's debugger.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] |
Then how does perl debugger work?
| [reply] |
Yeah, realized that afterwards, but then figured it might be helpful to anybody actually looking to see how to use the debugger too.
Apologies for the misguided post, and thanks for the links - very interesting to know about all that under-the-hood bits and pieces.
| [reply] |