Debugging mode on Android is a developer options and is used to copy data between PC and phone, read log data. Enable or disable debugging mode on HTC One by doing as follows:
1. Open "Settings" App
2. Go to "Developer Options"
3. In the Debugging settings, make sure "USB Debugging" is disabled. Otherwise Debug mode starts when USB cable is connected