Tips for debugging Xend?
Folks --
I'm walking through Xend and am having trouble figuring out where new commands that come in from xm via the UnixHttp interface are actually parsed and run. There are sort of three ways to tackle this.
First: Is there any documentation that explains the inner workings of xend?
Second: Is there an obvious way to convert SrvDaemon.start() to not fork so that I can run Xend on top of pdb?
Third: Is there a Python debugger that allows me to connect to a running application?
Any pointers to do any of the above would be welcome.
-- Randy
Quoted 8 lines · Randy Thelen
Folks --
I'm walking through Xend and am having trouble figuring out where new commands that come in from xm via the UnixHttp interface are actually parsed and run. There are sort of three ways to tackle this.
First: Is there any documentation that explains the inner workings of xend?
make dev-docs might help, but in your case, I doubt it. There's basically no documentation for the internals of Xend.
Quoted 2 lines
Second: Is there an obvious way to convert
SrvDaemon.start()to not fork so that I can run Xend on top of pdb?
Setting XEND_DAEMONIZE = False at the top of the xend launch script should do it.
Quoted 4 lines
Third: Is there a Python debugger that allows me to connect to a running application?
Any pointers to do any of the above would be welcome.
If you're using Xen 3.0.2 or unstable, you want to be looking at XMLRPCServer.py. The commands come in through there, and it should be fairly obvious from there on in.
Ewan.