Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Runtime is not ready for debugging

Tags:

I'm on macOS Sierra using react native 0.42.3:

I start my app using react-native run-ios, then press Cmd-D and I select "Debug JS Remotely". After that, a new Chrome Tab is opened, and by switching into the dev tools I see my console with every outputs so far.

The problem is: When I reload my app, while the debugger is open, it crashes with the infamous red screen saying "Runtime is not ready for debugging".

I found a lot of posts about debugging with react native, but nothing seems to address the problem when you try to reload it.

like image 747
23tux Avatar asked Apr 06 '17 13:04

23tux


People also ask

Does react provides runtime debugging?

React is one of the fastest-growing front-end frameworks. It makes creating complex and interactive UIs painless. Like other frameworks, it has a debugging toolset called React development tools.

What is runtime debugging?

Runtime debugging involves inspecting the state of a running application, potentially pausing execution at certain points so that the contents of variables in memory can be inspected.


1 Answers

These solutions both work:

  1. On simulator: Hardware -> Erase All Content and Settings
  2. On device: Delete the app from the device and reinstalling it

(Update credit to @Form and @John)

like image 94
Rob Norback Avatar answered Oct 11 '22 06:10

Rob Norback