You can debug your applications on your Android device not only over USB, but also over a TCP/IP (LAN / WLAN) connection. To enable tcp debugging you have to enter the following commands on your device:

setprop service.adb.tcp.port 5555
stop adbd
start adbd

To start debugging enter on your PC:

adb tcpip
adb connect <ip of device>
...

now you can debug as you are used to debugging over USB.

To disable debugging you have to enter the following commands on your device:

setprop service.adb.tcp.port -1
stop adbd
start adbd

More info can be found on Android Debug Bridge

Next Post