Skip to content

App gets closed when Remote JS Debugging is enabled #13090

Description

@vldgeorgiev

Description

When the JS Debugging is started from the Dev menu, the app on the mobile gets closed on its own after a while. It does not happen immediately, but after a minute or two, sometimes after 20-30 seconds.
It only happens if there is a debugger actually attached. If the option is enabled, but the debugger is closed immediately, the app runs as it should. E.g. if the Chrome window localhost:8081/debugger-ui is closed, or whatever other debugger is used.
It doesn't sound like a feature to me, so I suppose it is a bug somewhere. Maybe it is not in react-native itself, I'm not sure. But it definitely makes the logging and debugging much harder.
This happens on an Android 6.0 device connected by USB, not on an emulator.

Reproduction

  1. Create a new project with "react-native init ..."
  2. Run it with "react-native run-android"
  3. Open the Dev menu on the device and start the remote JS debugging.
  4. This will open Chrome to the debugger-ui page (or some other debugger). Don't close the page and wait for a few minutes. The app will close on the mobile on its own.

Additional Information

  • React Native version: 0.42
  • Platform: Android
  • Development Operating System: Windows 7
  • Dev tools: adb is v1.0.36, Android SDK platform-tools 25.0.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions