Stich
Stich

Reputation: 2381

Nuclide debugger does not launch for React Native

Steps to Reproduce / Screenshots

Apply all operations from the instruction :

  1. Start the React Native Server. Done. It successfully listenings port 8081. Start the React Native Server. Done.

  2. Run the application with "$ react-native run-ios". Done. Run the application

  3. Prime the Debugger (From the Command Palette, launch "Nuclide React Native: Start Debugging"). Done. Prime the Debugger Prime the Debugger

  4. Enable Debugging from the Application - select "Debug JS Remotely". Done. Enable Debugging from the Application

  5. "...After you enable debugging from the simulated application, Nuclide will attach to that debugging process automatically, since we primed the Debugger above..." BUT it does not start/work!

Environment

Atom version 1.15.0

Nuclide plugin version 0.209.0

React Native version: 0.42

Platform(s) (iOS, Android, or both?): iOS

Device info Simulator/Device? - Simulator iOS 10.2 / iOS 8.1

OS version? - MacOS 10.12.3

Debug/Release? - Debug

$ apm ls --installed Community Packages (17)

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

├── [email protected]

└── [email protected]


So, my application works fine, packager/React Native Server works fine, I successfully see my logs in Chrome dev tolls, BUT Nuclide debugger does not work/start, it still in "Starting debugger mode"

it still in "Starting debugger mode"

May be someone have any ideas what I'm doing wrong? Thanks.

Upvotes: 2

Views: 2849

Answers (1)

ostergaard
ostergaard

Reputation: 3507

Start the debugger before you start the iOS simulator so that the simulator doesn't open a Chrome debugger which will hog the port.

To expand on that a little, I was getting the exact same experience and what was happening was that when I started the iOS Simulator it was opening a Chrome window for debugging. This happens if the Nuclide debugger isn't already running when debugging is enabled in the simulator.

Upvotes: 2

Related Questions