make us only do the debug including switching directories if the flag is set