before device debug