Debub switch in the advanced tab now hides and show debug tab