我如何“摇晃"?Android 模拟器中的 Android 设备,用于调出开发菜单来调试我的 React Native 应用程序 [英] How do I "shake" an Android device within the Android emulator to bring up the dev menu to debug my React Native app

查看:15
本文介绍了我如何“摇晃"?Android 模拟器中的 Android 设备,用于调出开发菜单来调试我的 React Native 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个跨平台的 React Native 移动应用程序.我在开发时正在编写 console.log 语句.当我在默认的 Android 模拟器中运行 Android 应用程序时,我想在 Chrome 中查看这些日志记录语句.根据 Facebook 的文档,我只需要摇动设备"即可.如何在 Android 模拟器中执行此操作?

I am working on a cross-platform React Native mobile app. I am writing console.log statements as I develop. I want to see these logging statements in Chrome while I'm running the Android app in the default Android emulator. According to Facebook's docs I just need to "shake the device". How do I do this in the Android emulator?

访问应用内开发者菜单:

To access the in-app developer menu:

在 iOS 上摇动设备或在模拟器中按 control + ⌘ + z.在 Android 上摇动设备或按硬件菜单按钮(在较旧的 >设备和大多数模拟器中可用,例如在 genymotion 中,您可以按 ⌘ + m 来 > 模拟硬件菜单按钮单击)

On iOS shake the device or press control + ⌘ + z in the simulator. On Android shake the device or press hardware menu button (available on older >devices and in most of the emulators, e.g. in genymotion you can press ⌘ + m to >simulate hardware menu button click)

推荐答案

在您的应用程序中,在 Android Emulator 中按 Command + M on macOS 或 Ctrl + M 在 Linux 和 Windows 上.

Within your app in the Android Emulator press Command + M on macOS or Ctrl + M on Linux and Windows.

这篇关于我如何“摇晃"?Android 模拟器中的 Android 设备,用于调出开发菜单来调试我的 React Native 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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