automatic restart in debug mode