brefore device debug