Debug mode is now working

Besides, F5, Ctrl-F5 and Shift-F5 shortcuts are now working as well.
NB. I'd rather get rid of these annoying empty rows in the programGrid.