Here is the error which developer faced.
So what is the fix for this problem?
So let’s start,
1 : Just goto the about device and tap kernal version 5 time to enable Developer Option. ( If you are facing this issue means this setting is already enabled by you )
2 : Now head back to developer settings and scroll down till end.
3 : There you found one lonely option named “Turn On MIUI Optiomization”.
4 : Just Tap on that option and turn him OFF.
5 : That’s it. You are ready to debug again.
Here is result with my Redmi Note 3 MIUI Global 8.1.6.0
You may think that what is “MIUI Optiomization“? Are you?
Then answer is simple : This option is only seems on MIUI based Devices. This option enables settings & optimizations as per the guidelines set by the MIUI developers. This setting can sometimes cause a variety of issues on non-MIUI based apps such as Google Apps & Apps from Google Playstore. Its better to disable if you rely on Google Playstore for apps & services or use Global Stable or Global Beta MIUI ROMs.