xend的调试方法

* Export necessary system variables:
# export XEND_DEBUG=1
# export XEND_DAEMONIZE=0

* Start xend tracing:
# /usr/sbin/xend trace_start

The trace file will be available at /var/log/xen/xend.trace.

* Debug xend using the Python Debugger:
# python -m pdb /usr/sbin/xend trace_start

You'll drop to a debugging shell. You can set breakpoints and continue.

* Profile xend using the Python Profiler:
# python -m profile /usr/sbin/xend start >xend.profile

To generate the profile result:
# kill -INT <pid of xend>
# kill -USR1 <pid of xend>

The profiling log is available at xend.profile.

你可能感兴趣的:(xen)