Requirements: - Installed Android SDK on your PC/Mac - USB connected Android device
Open a Terminal and go to your SDKs folder android-sdk/plattform-tools/
cd /android-sdk-macosx/platform-tools/
Set port:
adb tcpip 5555
Connect to the IP of your Android device
./adb connect 192.168.80.XXXX
Disconnect your Android device.
Start debugging:
./adb logcat
You should now see the debug messages in the terminal.
To switch back to usb run
./adb usb
….connect usb