Well, I guess both sides of the coin have a few cons/pros, while "throwing code at a debugger", even if it hasn't been thought through all that well before hand, theoretically sounds like bad practice, having your variable contents, etc. given to you by a debugger, still in essence helps you better understand and think through your code.

Personally, I never used a debugger in Perl, I never could quite figure them out, so I ended up littering my code with print statements like

if (logic = $whatIthoughtitdid) { print "Entered into 1st if statement";
and also following every instance of strings/arrays by print statements giving their contents to me for the umteenth millionth time.

So, whether you think long and hard about your code before hand, or you have an epiphany after the debugger shows you your mistakes, you're still learning what your mistakes were, so once again, the Perl hacker just can't seem to avoid progression.


In reply to Re: Rambling about debuggers by koolgirl
in thread Rambling about debuggers by zek152

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.