Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Debugging a module?

by sfink (Deacon)
on Apr 06, 2006 at 16:54 UTC ( [id://541671]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Debugging a module?
in thread Debugging a module?

Either your perl behaves very differently from mine, or I didn't describe it very well. If I use these two files:

driver.pl

use TestModule; print "I am exiting now.\n";

TestModule.pm

package TestModule; our $x = 0; $DB::single = 1; our $y = $x + 1; our $z = $y ** 3; sub blah { "blah!" } 1;

...and run perl -d driver.pl, the debugger immediately stops at the line our $y = $x + 1. Do you get different results?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-24 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found