Add debug for link extraction

*Add debug for link extraction