1
Go to the device settings
2
Click on the software details
3
Click 7 times on build or miui build version number
4
Go back to the settings screen and look for the word "Developer"
5
Enable developer options, and enable debugging
6
Connect the device to the computer, and click OK