Runtime not ready for debugging

I am on macOS Sierra using native 0.42.3 reaction:

I run my application using react-native run-ios, then click Cmd-D, and I select "Debug JS remotely". After that, a new Chrome tab opens, and, switching to dev tools, I see my console with every output so far.

The problem is this: when I restart the application and the debugger is open, it crashes with the infamous red screen saying: "The runtime is not ready for debugging."

I found a lot of debugging messages with a native reaction, but it seems that the problem does not occur when you try to restart it.

+11
source share
9 answers

Indeed, this seems like a strange mistake that does not want to leave. I have never fixed this on my Mac.

I just use this: https://github.com/jhen0409/react-native-debugger Currently, and it works like a charm.

I know that this does not "solve" your problem, but it is a really good alternative, and it works like a charm.

+5
source

Both solutions work:

  1. On the simulator: Hardware → Erase All Content and Settings
  2. On the device: uninstall the application from the device and reinstall it

(Update credit on @Form and @John)

+9
source

WebStorm, , , . .

+5

CMD-D, JS, .

+2

, Remote JS Debugging iOS-, : enter image description here

. react-native run-ios. .

: https://github.com/facebook/react-native/issues/6682

0

Mac, CMD-D. Ctrl-D. " JS Bundle".

0

, Chrome , , Chrome devtools:

Google Chrome npm i -g react-devtools

0

, , . -

Chrome Chrome → → (, )

->

enter image description here

0

Source: https://habr.com/ru/post/1674210/


All Articles