Getting a full trace for debugging

Created by Thiago Teixeira
Keywords:
Last updated by:
Thiago Teixeira

If you're running into a particularly puzzling bug, I may ask you to get me a full trace of Cardapio. This is what I mean by that:

1) Open a web browser and go to the page for your bug report (you'll need this in a bit)
2) Close cardapio, remove from panel
3) Open a terminal and type
$ cd /usr/lib/cardapio
$ /usr/lib/python2.6/trace.py --trace --timing cardapio run-in-window > ~/cardapio_trace.log

This will log every line from the Cardapio script in the order they are executed, which means things will run *much* slower than usual. This includes the Cardapio's startup time, which on my machine takes about a minute when running this trace. So be patient, please :)

4) Try reproducing your bug.

5) Once the bug occurs DON'T TOUCH CARDAPIO.

Instead, just go to your web browser and attach the trace file (~/cardapio_trace.log) into a bug report. This way the conditions that prompted this bug will be at the bottom of the log file, making my life easier :)