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

Re^3: How perl debugger breakpoint works?

by PerlOnTheWay (Scribe)
on Sep 06, 2011 at 01:08 UTC ( #924311=note: print w/ replies, xml ) Need Help??


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

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?


Comment on Re^3: How perl debugger breakpoint works?
Download Code
Re^4: How perl debugger breakpoint works?
by BrowserUk (Pope) on Sep 06, 2011 at 01:21 UTC
    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?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (19)
As of 2014-07-11 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (232 votes), past polls