How can pypsrp be used to debug the communication format between Python and Exchange PowerShell?

You can enable debug output in `pypsrp/wsman.py` by adding logging to capture the raw data in the `send()` method. This reveals the exact POST requests and responses, including headers and encoded payloads. Comparing this with known formats from [Penetration Technique: Remote Access to Exchange PowerShell](/news/penetration-technique-remote-access-to-exchange-powershell) helps in building a clean Python implementation. The article demonstrates this debugging approach with sample code.