Special_K has asked for the wisdom of the Perl Monks concerning the following question:

I'm very new to using WWW::Mechanize and LWP and am wondering: What are people using to debug LWP? The official documentation states that "LWP::Debug used to provide tracing facilities, but these are not used by LWP any more. The code in this module is kept around (undocumented) so that 3rd party code that happen to use the old interfaces continue to run.". When I search the web for examples of LWP debug, all of them seem to use

use LWP::Debug qw(+);,

which does nothing when I put it in my code, and based on the quote I just posted above I guess I shouldn't expect it to. All of those examples must have been created before LWP::Debug functionality was removed. The page I quoted above suggests WireShark as a replacement, but that won't work for me because I need to monitor HTTPS POST data unencrypted, and WireShark views data after it's already been encrypted. I have httpsfox running in Firefox and can see exactly what the POST data is; I just need something equivalent for LWP/Mechanize to compare against.

Replies are listed 'Best First'.
Re: LWP/WWW::Mechanize debug
by Anonymous Monk on Mar 14, 2013 at 04:47 UTC
    Go to LWP::Debug and read the page, then add a handler