How to turn on USB debugging without opening the mobile?


On my mobile i forget my pattern lock to remove that lock using some third party software USB debugging should be enabled but it didn’t.so is there any way to enable USB debugging on my mobile without opening my mobile. Internet & location services also disabled in my mobile