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

(tye)Re: How to debug unknown dynamic code?

by tye (Cardinal)
on Dec 27, 2000 at 22:33 UTC ( #48476=note: print w/ replies, xml ) Need Help??


in reply to How to debug unknown dynamic code?

Well, you can step through eval'd code, but you probably won't see the source lines since the debugger gets access to the source lines by reading from the file that Perl read from before.

Breaking on Module::function should work provided that the module has already been required. Of course, there are lots of fun things that modules can do that make this break. Autoloading is the most common. For example, much of CGI is generated when you need it, which makes debugging that code nearly impossible (because the code for most of the subroutines was eval'd).

        - tye (but my friends call me "Tye")


Comment on (tye)Re: How to debug unknown dynamic code?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2014-07-22 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (127 votes), past polls