To use ADB (Android Debug Bridge) for remotely debugging apps on Android, follow these steps:
-
Set Up ADB:
- Download and install the Android SDK Platform Tools on your computer.
- Enable Developer Options on your Android device by going to Settings > About phone and tapping the Build Number seven times.
- Enable USB debugging in Developer Options.
-
Connect Your Device:
- Connect your Android device to your computer via USB.
- Allow USB debugging when prompted on your device.
-
Configure Network ADB:
- Find your device’s IP address in the Wi-Fi settings.
- In the terminal or command prompt on your computer, run:
adb tcpip 5555 - Disconnect the USB cable.
-
Connect via Wi-Fi:
- In the terminal, connect to your device using its IP address:
adb connect <device_ip_address>:5555
- In the terminal, connect to your device using its IP address:
-
Start Debugging:
- Launch your preferred IDE (such as Android Studio).
- Deploy and debug your app remotely over the network as you would with a USB connection.
-
Disconnect:
- When done, disconnect ADB over Wi-Fi using:
adb disconnect <device_ip_address>:5555
- When done, disconnect ADB over Wi-Fi using:
This method allows you to debug without needing a physical connection, providing flexibility, especially for testing on multiple devices.


