You can connect to Android device adb through TCP/IP (Wi-Fi) connection. This is very useful if you want to check usb connection or charging discharging feature while debugging. Your PC and device has to be in same network and you need to know the IP address of your device. To do this connect your device over usb. Check it is in debug mode by
Start the adb in TCP/IP mode in port 5555 (default port). You can use other port (8888, etc).
Then connect to your device over Wi-Fi
where xxx.yyy.zzz.ppp is the IP address of your device.
Then unplug the device over usb, and run
It should show the logs of your device.
To return back to usb mode, run
You may have to connect your device over usb to do this.