PDA

View Full Version : Compiz Debugging


iznogood
November 11th, 2006, 11:49 AM
Hi all,
can you tell me how to debug compiz except using printf's

I tried Xnest and i get a "No composite extension found" error

Can people post on how they work on this ??
It would be very helpful

Thanks in advance

mikedee
November 11th, 2006, 01:27 PM
Personally I get away with fprintf's. printf's didnt show properly in the terminal.

Xnest :1 -ac -br +extension Composite

I think this is the line you are looking for to start Xnest with Composite. Unfortunatly it will probably segfault (it does here - known bug).

Personally I debug using my main desktop. There are a few tricks I have learned to keep up and running. Normally I just switch to another vt and restart kwin (first type export DISPLAY=:0). Sometimes if your code is within an action function then it can lock up. In these cases I sometimes type sleep 10 && kwin --replace in another terminal before crashing it. This is useful for actions where a crash can hard lock everything.

fab
November 11th, 2006, 02:59 PM
Hello
my way to debug compiz is using gdb on a ssh remote host :D

Well the only problem of it is that you need two computers in order to be able to do it that way.

But i think it is pretty nice for this !!

And pretty fun when you set breakpoints before wrapped redraws ( you got really funny output on screen :lol: )