Just enable Flashlight on your iphone and don't disable it. After you do it the power will be constantly supplied over usb to your iPhone and you will be able to connect to it through the Safari developer tools
Topic:
Safari & Web
SubTopic:
General
Tags: