How to Enable adb mode??when device locked?

When androd device is locked how to enable usb dubbing for adb mode.