in reply to How to debug a perl module

The documentation has a section for Diagnostics and Using a Devel::REPL shell. I guess you could also use something like Wireshark to montior what's going on, and compare differences between the modules vs manual connections.

See also perldebug and Debugging and Optimization from the tutorials section.