From: Jamie C. <jca...@we...> - 2007-07-31 23:28:54
|
On 31/Jul/2007 14:12 Paul Gear wrote .. > Hi folks, > > I've made a few useful (i think) changes to the Shorewall module, and i > plan to make a few more before i send in the patches. However, i would > like to do some more testing & debugging, and i'd like to know what sort > of debugging tools are at my disposal. > > From what i can tell, the Perl errors from my module actually go nowhere > at all. Is this correct/intended? What is the preferred mechanism to > capture Perl errors and produce debug output? I've experimented with > saving temporary files using a technique i borrowed from another module, > and that seems to work sometimes, but not always (and possibly is > dependent upon the actual path used). I'm confused! :-( Hi Paul, The debugging technique I usually use is to print to STDERR, which is then logged to /var/webmin/miniserv.error . Not exactly the most modern technique in this age of source-level debuggers, breakpoints and variable watching, but it works for me :-) - Jamie |