How to debug the react native app over network without USB cable
You can refer to this solution on github for how to debug or connect and run your react native application over network without USB cable :-
This is the tried and Tested solution :-
https://github.com/facebook/react-native/issues/31105
Update :
Solution is pretty straight forward :
https://developer.android.com/tools/adb
Go to above link , follow the steps in - Wi-Fi connection using command line :-
Below I have mentioned the extra information which you might need while following the instructions from the above docs.
3) On your workstation, open a terminal window and navigate to android_sdk/platform-tools
. ( if you already have android_sdk set as system's PATH environment variable , you can directly run adb pair ipaddr:port
this command .
4) To get the IP address, port number, and pairing code for pairing your Android device with your workstation, you need to enable wireless debugging on your device:
Enable Developer Options:
Go to your device's "Settings."
Scroll down and tap on "About Phone."
Tap on the "Build Number" 7 times in quick succession. You'll see a message indicating that you are now a developer.
Enable Wireless Debugging:
Go back to the main "Settings" menu.
You should now see a new option called "Developer Options." Tap on it.
Scroll down and find "Wireless Debugging." Enable it.
Tap on "Pair device with pairing code."
Note the Details:
- Your device's screen will now display its IP address, port number, and a unique pairing code. Note these down.
Subscribe to my newsletter
Read articles from Vishesh Gupta directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by