Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1549

Improve Chrome Debugger error message when using iOS on JSC?

      Description

      When using an iOS simulator/device, if you attempt to connect to the Chrome Debugger you now get the following error message:

      ``Error: This version of Realm JS doesn't support the legacy Chrome Debugger. Please use Flipper instead.``

      This makes sense if your RN app is using hermes but it's misleading if it's still on JSC as you can't use the Hermes debugger in Flipper (and I don't believe there's a JSC debugger in Flipper?)

      Don't know if this is possible, is there a way the code showing this message can change based on the engine/OS being used? If so it should be pointing the user towards using Safari's debugger function. If this is doable then it might be worth pointing the dev towards a documentation page on the Realm website so as to explain that they're going to want to change their AppDelegate.m to do inline sourcemaps too.

      Stacktrace & log output

      No response

      Can you reproduce a bug?

      Yes, always

      Reproduction Steps

      No response

      Version

      10.20.0-beta.1

      What SDK flavour are you using?

      Local Database only

      Are you using encryption?

      No, not using encryption

      Platform OS and version(s)

      macOS 11.6.3 / Xcode 13.2.1's iOS Simulator

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: