React & Modern Frontend (445 Qs)•Part 6: React Native Architecture (135 - 138)
How to debug your React Native?
Follow the below steps to debug React Native app:
- Run your application in the iOS simulator.
- Press
Command + Dand a webpage should open up athttp://localhost:8081/debugger-ui. - Enable Pause On Caught Exceptions for a better debugging experience.
- Press
Command + Option + Ito open the Chrome Developer tools, or open it viaView->Developer->Developer Tools. - You should now be able to debug as you normally would.
React supported libraries & Integration
Practical Code Example
text
// Debugging React Native:
// 1. React Native Flipper / React DevTools
// 2. Chrome Inspect (Hermes debugger)
// 3. React Native LogBox in simulator