add debug message for origAttach list and doc attach list