as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

Debug Your App with Developer Menu Tools

The in-app developer menu provides access to debugging tools, including an element inspector and performance monitor.

Set up port forwarding

To access the developer menu debugging tools of your app, you first need to connect your app to the Metro bundler. To connect your app to the Metro bundler, you must set up port forwarding.

To set up port forwarding

  • Open a command prompt, and then run the following command, depending on your device.

    Vega Virtual Device:

    Copied to clipboard.

      kepler virtual-device start
    
      kepler device start-port-forwarding --device <DEVICE_NAME> -p <PORT> --forward false
    

    Fire TV Stick:

    Copied to clipboard.

     vda reverse tcp:8081 tcp:8081 && vda reverse tcp:8097 tcp:8097
    

Start the Metro bundler

Before you start your app by using the Vega Virtual Device or a Fire TV Stick, start the Metro bundler.

To start the Metro bundler

  • Open a command prompt, and then run the following command.

    Copied to clipboard.

     npm start
    

Start your app

After you start the Metro bundler, you can start your app.

To start your app

Debug your app

After you have your app running in either the Vega Virtual Device or Fire TV Stick, you can debug your app.

To debug your app

  1. In the Metro bundler terminal window, click d to open the developer menu in your running app.

  2. Choose a debugging option:

  • Reload – reloads the app.
  • Open Debugger – opens the Flipper debugger (React Native 0.72) or Chrome DevTools (React Native 0.73 or later). You can also access the debugger using Chrome's remote debugger.
  • Show Element Inspector – displays the React's Native element inspector.
  • Disable Fast Refresh – disables hot-reloading of the app after code changes.
  • Configure Bundler – configures the address where the JavaScript bundle is available.
  • Show Perf Monitor – opens the performance monitor.

Troubleshooting app debugging

  • If the Metro bundler isn't connecting to your app, make sure you have set up port forwarding for a Fire TV Stick by using the vda reverse command or for the Vega Virtual Device by using the ssh sim -R command.
  • If you use a cloud environment, make sure you use the following SSH configuration options:

      LocalForward 8081 127.0.0.1:8081
      LocalForward 8097 127.0.0.1:8097
    

Additional resources


Last updated: Sep 30, 2025