Added environment check to transaction debug