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

查看:335
本文介绍了开发人员菜单中的“缺少远程调试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替换为最新版本的react-native.

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天全站免登陆