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

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
When I used to write a lot in C, there were a few cases where debuggers were very useful as compared to just being a crutch. I could attach to a long running daemon to check out a bug that only occurred after the program had been running for days on end. Also, it was easier to observe the state of various data structures, rather than add/remove print statements or control flow changes and rebuild the code twice. If you really want to, you can also get better test coverage for code paths that are extremely unlikely to occur in real life, without altering the actual code.

In perl, I have hardly ever used a debugger, and in the cases where I did, probably have never really needed to. Adding and removing things like verbose logging, Data::Dumper prints, etc, is just so quick and easy there is almost no point. About the only time I could forsee really needing it would be if I had to try to debug a problem that is occuring in production in someone else's perl code (e.g. a CPAN module), and I didn't want to alter their code for fear of perturbing some other process on the system. Hasn't happened to me yet...


In reply to Re: I never use the debugger. by bluto
in thread I never use the debugger. by friedo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found