I've banged my head against the desk so many times this month on this one issue, that there's a dent there now. This SoPW is the result of that frustration hitting me over and over and over.

I seem to be running into a streak of issues where modules that I'm using, are using other modules, which are throwing errors and warnings that I need to debug. I started seeing it with XML::RSS::Tools throwing errors in XML::Parser, several other XML and RSS-related modules, and now moments ago, Net::NNTP is throwing errors down in Net::Cmd.

Here's an example of the errors/warnings I see:

Use of uninitialized value in pattern match (m//) at /usr/local/share/perl/5.8.4/Net/Cmd.pm line 207 (#1)

My code is always run with warnings, diagnostics, and strict.. and for most of my test runs, it runs perfectly clean. Except when it throws these. In this case, it must be something in the article body that Net::Cmd doesn't like, and it errors out.

How can I start flipping on some more-verbose debug in these sub-called modules, if I'm not calling them directly? Some modules support a Debug() method, some do not, so I'm stuck. I don't want to modify the default methods of these modules themselves (i.e. by editing the .pm file).

Is there another way?


In reply to Turning on debug/verbosity in modules that are sub-called by hacker

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.