My program crashes somewhere during a game loop at variable times independent of input events. I am looking for a suitable debugging method that I can use to find the proble