Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: How perl debugger breakpoint works?

by ForgotPasswordAgain (Priest)
on Sep 05, 2011 at 20:18 UTC ( [id://924294]=note: print w/replies, xml ) Need Help??


in reply to Re: How perl debugger breakpoint works?
in thread How perl debugger breakpoint works?

He's not asking how to use the debugger, but rather how it works under the hood. See for example (based on C) "Playing with ptrace". You might be interested in perldebguts.
  • Comment on Re^2: How perl debugger breakpoint works?

Replies are listed 'Best First'.
Re^3: How perl debugger breakpoint works?
by PerlOnTheWay (Monk) on Sep 06, 2011 at 01:08 UTC

    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?

      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.
        Then how does perl debugger work?
Re^3: How perl debugger breakpoint works?
by DanielSpaniel (Scribe) on Sep 06, 2011 at 02:24 UTC
    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://924294]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found