【问题标题】:`react-native run-ios` opens two debug tabs with error`react-native run-ios` 打开两个错误的调试选项卡
【发布时间】:2016-12-23 18:47:04
【问题描述】:

我已经用 react-native 构建应用程序几个月了。最近,当我使用 'react-native run-ios' 启动模拟器时,两个 debugger-ui 选项卡同时在 Chrome 浏览器中打开,simulatorConnection to http://localhost:8081/debugger-proxy?... 上给出错误。 关闭 debugger-ui 的一个选项卡并刷新另一个选项卡,再加上 simulator,可以解决问题,但我想弄清楚发生这种情况的原因并彻底解决。

我认为这与 simulator 而不是 react-native 本身有关。任何想法在哪里寻找解决这个问题以及为什么会发生?

提前致谢。

【问题讨论】:

  • 我最近也遇到了这个问题。
  • 还是时有发生,还没弄清楚真正的原因。

标签: ios google-chrome debugging react-native ios-simulator


【解决方案1】:

我发现解决此问题的唯一方法是完全重置模拟器。

转到Simulator 并点击Reset Content and Settings...

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-12-24
    • 2021-09-12
    • 2023-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-02
    相关资源
    最近更新 更多