Change to envdir with debug