The following tools are used for debugging the MetaMask mobile app:
- Redux DevTools - A redux devtools plugin in Expo for debugging Redux
- Safari Browser - For debugging the in-app browser for the mobile app
- Google Chrome - For debugging the in-app browser for the mobile app
To open Redux DevTools
on either platforms, press shift+m
in the watcher window and select redux-devtools-expo-dev-plugin
.
This will open a browser window with the Redux DevTools
UI, which you can use to inspect the actions that are dispatched to the Redux store.
For reference on how to use Redux DevTools
, refer to Redux DevTools project.
- Run the app in debug mode (for example, in a simulator)
- Open Chrome on your desktop
- Go to
chrome://inspect/#devices
- Look for the device and click inspect
- Run the app in debug mode (for example, in a simulator)
- Make sure the value of
webviewDebuggingEnabled
prop on the Webview component istrue
- Open Safari on your desktop
- Go to the menu Develop -> [Your device] -> [Website]
Reactotron is already configured in the app and can be used to monitor API calls
brew install --cask reactotron
- Open Reactotron
- Refresh simulator
- API logs should appear under Timeline tab in Reactotron.
If Reactotron isn’t picking up connections on Android, run:
adb reverse tcp:9090 tcp:9090
Then refresh the app again.
React Native DevTools is useful for viewing logs, inspecting components, and profiling the app.
- In the Metro bundler terminal, press
Shift + M
. - Select Toggle Developer Menu.
- In the iOS Simulator, choose Open JS Debugger.
- In the Metro bundler terminal, press
Shift + M
. - Select Toggle Developer Menu.
- In the Android emulator, choose Open Developer Menu.
- Select Open DevTools.