Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

React native debugger won't attach #1562

Open
davidliu opened this issue Jun 22, 2018 · 7 comments
Open

React native debugger won't attach #1562

davidliu opened this issue Jun 22, 2018 · 7 comments

Comments

@davidliu
Copy link

Issue and Steps to Reproduce

Attempting to attach the React Native debugger results in nothing happening. The "Starting debugger" messaging shows up and then disappears soon after, with no error messages.

  1. Start metro packager from within Nuclide or from command line.
  2. Enable remote debugging on device (either iOS or android)
  3. Close chrome debugger ui
  4. Attempt to attach debugger from Nuclide

Expected Behavior

Debugger should attach, or if unable to, should provide some error log explaining why.

Actual Behavior

Debugger neither attaches nor provides error logs.

Versions

  • Atom: 1.28.0
  • Nuclide: 0.317.0
  • Client OS: Mac 10.12.6

Additional Details

  • Installed packages (apm ls --installed):

├── MagicPython@1.0.12
├── atom-import-js@0.15.0
├── file-icons@2.1.21
├── highlight-selected@0.13.1
├── language-babel@2.85.0
├── language-graphql@0.10.1
├── language-haskell@1.17.8
├── language-ini@1.20.0
├── language-kotlin@0.5.0
├── language-lua@0.9.11
├── language-ocaml@1.9.5
├── language-rust@0.4.12
├── language-scala@1.1.9
├── language-swift@0.5.0
├── language-thrift@1.0.2
├── linter@2.2.0 (disabled)
├── nuclide@0.317.0
├── nuclide-format-js@0.0.46
├── prettier-atom@0.54.0
├── set-syntax@0.4.0
├── sort-lines@0.18.0
└── tool-bar@1.1.7

@andrejcesen
Copy link

I just tested different versions of Nuclide and it seems like the breaking change was introduced with v302.

@davidliu
Copy link
Author

Thanks @andrejcesen for the temporary workaround version!

@sintylapse
Copy link

@davidliu so downgrading to nuclide v0.302 will fix that?

@pelmers
Copy link
Contributor

pelmers commented Jul 9, 2018

At the time I upgraded the library, I did check to make sure it worked with react native 0.50, on both android and ios emulators ( and android device ). What version of react native are you using, and what is the target type (device/emulator/android/ios)?

@davidliu
Copy link
Author

At the time, React Native 0.54. The target was iOS 11.2 emulator, and a Pixel running Android 8.1.0, though debugger attaches to the Metro bundler?

@ThomasGHenry
Copy link

any news on this? thanks!

@CoderCharlie
Copy link

Having the same issue on Mojave 10.14.1, nuclide 0.366.0, react-native 0.57.4.
After running the sample app with react-native run-ios and go back to nuclide, try to attach on react-native with port 8081, get a result "The debugger is not attached.".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants