I know I should not but ... sometimes I even do add debug prints into other peoples modules (on my development machine). But I do mark them and delete them afterwards.

And I do look inside whenever I get a message like this and try to understand what the heck is going on down there. Besides I can learn something reading other people's code.

I believe this helps a lot, imagine you COULDN'T go and look at&modify that library. Imagine you did not know what went wrong inside and couldn't find out.

Anyway I do not use the commandline debuger, I use ptkdb instead. Maybe it doesn't allow me to set a break point that's triggered only each 7th time and only if there is a process with ID 15764 on the machine, but it gives me more context. A matter of personal preference of course.

To get back to DBI ... is there any chance you call an ->execute() with too many params? Could you change the die() on line 301 of DBI/ProxyServer.pm to Carp::confess(), to see what command in your script caused the problem?

  Jenda


In reply to Re: DBI/module debugging? by Jenda
in thread DBI/module debugging? by kechari

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, details, 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, summary, 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.