Fix debug listing when called from the same file it has been required