You need to go to the settings and tap the item seven times - the MIUI version. After this procedure, go to the "advanced" menu where the "developer menu" appeared in which you need to enable the "USB debugging" button
The main function of debugging is making profound changes to the operating system of a smartphone. This will definitely require root rights.
After obtaining them, debugging can be found in the Settings menu - section "For Developers" - "USB Debugging".
As a rule, debugging is enabled the same way on all Xiaomi smartphones, regardless of the MIUI version.
For more information on how to get developer rights and then debug: https://phoneoff.ru/instruktsii/otladka-po-usb-na- xiaomi-chto-jeto-takoe-i-kak-ee-vkljuchit
My Xiaomi phone has installed the gboard keyboard update today and got an error that prevents the keyboard from being called up? I can't unlock my phone. Nothing helps, what to do