tools:checkdata: add debug modoe

Add debug option to enalbe debugging.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>