question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown execution context on iOS Simulator with Remote JS Debugging

See original GitHub issue
  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

Issue Analytics

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

github_iconTop GitHub Comments

13reactions
aparedescommented, Feb 17, 2017

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.

4reactions
sumesh1993commented, May 19, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

importing Realm to Expo React Native IOS app - appsloveworld
Coding example for the question unknown execution context error - importing Realm to Expo React Native IOS app.
Read more >
Xcode 12 beta 4 - error compiling … | Apple Developer Forums
An existing framework library workspace compiles without error when targeting iOS device architecture, but when targeting Simulator I receive the following ...
Read more >
unknown execution context when import realm in react-native
I was getting this error when I had chrome's debugger in simulator mode. That is because Realm doesn't know if its running in...
Read more >
React Native | WebStorm Documentation - JetBrains
Make sure the JavaScript and TypeScript and JavaScript Debugger ... tools to get started with React Native, for example, an iOS simulator.
Read more >
VS for Mac 2022 Preview 7 can't launch iOS app in debug mode
When try to run my app on iphone simulator 15.4 i get “error HE0042: Could not launch the app 'xxx' on the device...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found