add native is debug function
Merge pull request #20 from chuanweizhang2013/master

add native is debug function