Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Interactive scripting with DB (effective ways?)

by demerphq (Chancellor)
on May 27, 2005 at 07:30 UTC ( [id://460974]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Interactive scripting with DB
in thread Interactive scripting with debugger

There are certainly stupid ways to try to use a debugger. And I still find that people who dislike debuggers are those who don't know how to use a debugger effectively

I've seen you say this a few times and I really wish you would follow up with at least a brief description of what you consider to be effective use of a debugger. Since I'm not sure if my use and knowledge would be considered effective I find it hard to decide if my feelings about prefering a more analytical approach are justified. Could you please expand on some high level aspects of how you think debuggers should be used? I think I've gleaned that you consider stepping through code to be a bad approach (I tend to agree) but I havent seen much more than that.

cheers

---
$world=~s/war/peace/g

  • Comment on Re^5: Interactive scripting with DB (effective ways?)

Replies are listed 'Best First'.
Re^6: Interactive scripting with DB (effective ways?)
by adrianh (Chancellor) on May 27, 2005 at 17:44 UTC
    really wish you would follow up with at least a brief description of what you consider to be effective use of a debugger

    I can't speak for tye, but here's a couple of ways that I occasionally use a debugger.

    • Understanding code. If I've been handed a big ball of mud sans tests then the debugger is a handy tool for understanding how the bugger runs. Although these days I tend to use Devel::Cover first to give me an overview of what's going on.
    • Exploratory testing. Poking at the code to see if I can make it fail and then go write a failing test. I've not use it myself yet, but Devel::TestEmbed looks like a nice little tool to make this task easier.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-19 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found