realm-js: Unknown execution context on iOS Simulator with Remote JS Debugging

  1. Goals Debug code with Remote JS Debugging.

  2. Expected results Debug code with Remote JS Debugging.

  3. Actual results Red error screen with title ‘Unknown execution context’ uec

  4. Steps to reproduce

  • Create new project react-native init TestRealm
  • Install Realm npm install --save realm or yarn add realm
  • Link Realm react-native link realm
  • In index.ios.js insert import Realm from 'realm
  • Run code react-native run-ios
  • Enable Remote JS Debugging
  1. Code sample that highlights the issue https://github.com/aparedes/TestRealm

  2. Version of Realm 1.0.2 / Xcode 8.2.1 / OSX 10.11.6

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 22 (3 by maintainers)

Most upvoted comments

Do you have the debugger with device toolbar on?screen shot 2017-02-17 at 14 58 48

It seems that is the one causing the problems. Or at least for me.

running react-native run-ios again, worked for me.