add native is debug function