Fix Ctrl-R while in debug mode not restarting in debug mode properly