如何在 React Native 中启用远程调试 JS?

Kri*_*pil 8 debugging react-native redux

为了调试 redux,我使用 React Native Debugger,但为此您需要启用 Debug JS Remotely。我的开发者菜单中没有此选项卡。我使用 redux、redux-toolkit、redux-saga。

照片: https: //i.stack.imgur.com/jrX4b.png

小智 9

您应该在 Podfile 上禁用 Hermes:

  • :hermes_enabled => false
  • 安装 Podcd ios && pod install && cd ..
  • 构建应用程序npx react-native run-ios

参考:https://github.com/facebook/react-native/issues/34615#issuecomment-1238913946

  • 正如目前所写的,您的答案尚不清楚。请[编辑]添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。您可以[在帮助中心](/help/how-to-answer)找到有关如何写出好的答案的更多信息。 (3认同)