【问题标题】:Where is the "Debug in Chrome" menu option for React Native with the iOS Simulator?带有 iOS 模拟器的 React Native 的“在 Chrome 中调试”菜单选项在哪里?
【发布时间】:2015-11-03 05:02:31
【问题描述】:

我正在尝试使用 React Native 进行更好的调试。在React Native documentation 中,它说您可以通过选择“在 Chrome 中调试”以某种方式获得带有 Chrome 的调试器。这个“在 Chrome 中调试”菜单项在哪里?我找不到它!我正在查看 iOS Simulator Debug 菜单,但没有显示 Debug in Chrome 的选项。

要在 Chrome 中调试 JavaScript 代码,请从 开发者菜单。这将在以下位置打开一个新选项卡 http://localhost:8081/debugger-ui.

【问题讨论】:

    标签: debugging react-native


    【解决方案1】:

    我猜你找错地方了,它不在主菜单中。在 iOS 模拟器中打开你的 React-Native 应用,然后按⌘ + d(或在真实设备中摇一摇)然后你会看到它。

    【讨论】:

      猜你喜欢
      • 2021-09-12
      • 1970-01-01
      • 2018-10-29
      • 2018-09-29
      • 2017-12-18
      • 2018-03-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多