I am writing xmlrpc codes to communicate between Apache XML-RPC client and a Python SimpleXMLRPCServer. I have difficulty debugging it, because I can't find a way to see the request XML/response XML. Are there anyway I can see it dump to console or logged in file?
How to debug Apache XML-RPC client with Python server
1.9k Views Asked by Lily At
3
There are 3 best solutions below
0

To debug the Python SimpleXMLRPCServer code you can use rpdb https://pypi.python.org/pypi/rpdb.
Add rpdb.set_trace() in the server side code where you want to set the breakpoint. It opens the debugger on port 4444. To connect to the debugger, telnet to port 4444.
In the SimpleXMLRPCServer debug session you can see the request XML/response XML.
Use a network packet sniffer like ethereal or wireshark.