Output debug if switching to sidebar fails