How to view iPhone Safari developer tools on Mac over WiFi? I need to access the JavaScript console/debugger menu from my iPhone on my Mac but I need to test it while the iPhone is not charging.

Is there a way to do this?
Connect your iPhone to your Mac via USB
Go to Safari on your Mac
Mac: Safari > Preferences > Advanced > Show Developer menu in menu bar
iPhone: Settings > Safari > Advanced > Web Inspector
Mac: Safari > Develop > [iPhone Name] > Connect via Network
Unplug the iPhone form USB. You should still see it in the menu
Go to the website on iPhone Safari
On your Mac select the website. A window should open with console, inspect element and a bunch of other developer tools.