I am coding React-native in Android Studio for Windows and using the Emulator. I have no idea how to debug my code?
How can I console.log in the code and see the results? How can I inspect elements? How can I put a break point in the code?
Any suggestion on the tools/tutorial will be a great help.
Thanks Negin
In App Developer MenuOn Android emulator, you need to press command + M. Debug JS Remotely − Used for activating debugging inside browser developer console. Enable Live Reload − Used for enabling live reloading whenever your code is saved. The debugger will open at localhost:8081/debugger-ui.
You will need Node, the React Native command line interface, a JDK, and Android Studio. While you can use any editor of your choice to develop your app, you will need to install Android Studio in order to set up the necessary tooling to build your React Native app for Android.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With