Add debug option from environment.