debug typeof device