To install xtrace just follow these instructions.
sudo apt-get install xtrace
Which will install xtrace and any other packages on which it depends.
|Maintainer||Bernhard R. Link <firstname.lastname@example.org>|
|Home page||http://xtrace.alioth.debian.org/ interface::graphical, role::program, scope::utility, use::monitor, use::proxying, works-with::software:running, x11::application, x11::xserver|
|Description||trace communication between X client and server you hook it between one or more X11 clients and an X server and it prints the requests going from client to server and the replies, events and errors going the other way.|