Skip to content

Installing Debugger

Chloe Zhao edited this page Apr 28, 2022 · 1 revision

Installing Debugger

  1. Install Homebrew
  2. run brew install --cask react-native-debugger
  3. Run project using npm run ios
  4. After simulator launches, go to "Device" > "Shake" to launch debugger image
  5. Launch the react-native debugger (It's a separate application that's not the browser) image
  6. Call showAsyncStorageContentInDev() in the react-native debugger console to see async storage

Running Debugger Notes

  • You need to close the debugger in your browser so you can use RND (React Native Debugger)
  • After switching debuggers and/or turning on/off debug mode, you may need to reload the app (try via metro & via the app) for the debugger to work.
  • If you're seeing the error message below, try restarting metro. If that doesn't fix it, then try rebuilding. image