facebookarchive / nuclide

An open IDE for web and native mobile development, built on top of Atom
https://nuclide.io
Other
7.79k stars 682 forks source link

React native debugger won't attach #1562

Open davidliu opened 6 years ago

davidliu commented 6 years ago

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

Additional Details

├── 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 commented 6 years ago

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

davidliu commented 6 years ago

Thanks @andrejcesen for the temporary workaround version!

sintylapse commented 6 years ago

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

pelmers commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

any news on this? thanks!

CoderCharlie commented 6 years ago

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.".