Set debug state in environment variables