Add more debug tools

I wrote this while debugging cursor X position, so now it is done, why not merging it?