http://www.perlmonks.org?node_id=431062


in reply to I usually debug via...

I often use print. But I also often (perhaps even more often, step through my code with perl -d even when I'm not chasing a specific bug - it's just that if the code is in anyway tricky, I like stepping through it, examining variables at my leisure, and see if the code does what I thought it would.

I caught some bad bugs that way, and I caught them before they could bite me.