Improve Chrome Debugger error message when using iOS on JSC?

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

      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
            Reporter:
            Unito Sync Bot
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Resolved:
              Archived: