Add debug for link extraction#2

*Add debug for link extraction