Add more debug information

A bug on egueb was difficult to find out because there was no
information about what was drawn and what was not