Add debug for link extraction#1

*Add debug for link extraction