Debug Missing Textures - DERMA

Well, I have an old script I am using but I am missing a few textures here and there, but it is not very well coded and I can not seem to find the piece of code that sets the texture to replace what is there, so… Is there any easy way to debug missing textures, possibly something to enable to give better reports on missing files or something?

Thanks in advanced.