Fixed 'too long without yielding'

Also added more detailed output to debug.getSource.scanFiles.scanFile