Added some (commented out) debug output
TextAnchor: range policy: return more info about the reason of failure