Debugging mode turning on

How to turn on debugging ifmobile device locked and we have to switch on debugging for connect mobiledit