document debugging