开发人员菜单中缺少远程调试 JS 选项 [英] Missing Debug JS Remotely option in Developer Menu

查看:17
本文介绍了开发人员菜单中缺少远程调试 JS 选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了使用 React Native Debugger,当我使用 expo 在我的 android 模拟器和物理设备上打开开发者菜单时,我没有看到远程调试 JS"选项.尝试了这两种情况,但没有远程调试 JS 的选项...

In order to use React Native Debugger, I don't see the option 'Debug JS Remotely' when I open the Developer Menu both on my android simulator and my physical device, using expo. Tried both scenarios and no option for Debug JS Remotely...

(我最初想将我的外部设备与 React Native Debugger 一起使用,但我在 node_modules/react-native/Libraries/Core/Devtools/setupDevtools.js 中找不到 setupDevtools.js 文件,以便更新此文件使用.不知道这两个有没有关系,也想分享一下)

(I originally wanted to use my external device with React Native Debugger and I can't find the setupDevtools.js file at node_modules/react-native/Libraries/Core/Devtools/setupDevtools.js in order to update this file for use. I don't know if these two might be related, but also wanted to share)

我错过了什么吗?谢谢...

Am I missing something? Thank you...

推荐答案

我猜选项 Debug JS Remotely 已经被选项 Debug 替换为最新版本的反应原生.

I guess the option Debug JS Remotely has been replaced by the option Debug with the latest version of react-native.

如果您想将外部设备与调试器一起使用,只需摇动设备并从开发人员菜单中选择调试选项即可.

And If you want to use your external device with a debugger just shake the device and select the debug option from the developer menu.

但正如@JoeBe 建议的那样,您还应该寻找一个已经打开的调试器,然后尝试一下.

But as @JoeBe suggested you should also look for an already open debugger and then try it.

如果您使用的是最新版本的 react-native,也可以通过在 node.js 屏幕上按 d 来打开开发者菜单.

You can also open the developer menu just by pressing d on node.js screen if you are using the latest version of react-native.

这篇关于开发人员菜单中缺少远程调试 JS 选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆