Use path variable in DEBUG statement, not adpath