Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Make sure you're solving the right problem

by exussum0 (Vicar)
on Oct 13, 2006 at 17:53 UTC ( [id://578189]=note: print w/replies, xml ) Need Help??


in reply to Make sure you're solving the right problem

I had a similar issue once, where a program would mysteriously fail, mostly when I wasn't looking. What I did, for my case, was to bring up the perl debugger, and watch each line run against a copy of the funky system.

Turned out some chucklehead used signals for detecting timeouts without ever resetting the signal properly... so if the process was fast enough, the new signal handler would go away when the process terminated. Which was quite the case on a dev system.

Use a perl debugger, watch the lines run one by one, and I'd get a signal handler go BOING!.

Replies are listed 'Best First'.
Re^2: Make sure you're solving the right problem
by talexb (Chancellor) on Oct 13, 2006 at 17:59 UTC

    Absolutely. The Perl debugger is a bit cryptic (OK, it's *very* cryptic), but it shines an intense bright light on what the code's doing. I'm a fan.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-29 10:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found