42
Webstorm 添加 React Native 调试菜单 · Issue #3 · collinxz-coder/blog · GitHub
source link: https://github.com/collinxz-coder/blog/issues/3?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Comments
React Native 在真机上调试的时候,要打开调试按钮,需要摇动手机,一直摇手机也受不了。好在可以通过 adb 来发送 KEYCODE_MENU 给真机,但是每次打开菜单后,还要自己去点击具体的菜单。今天好好看了一遍 ADB 的 keyevent ,整理了一下通过 adb 选择具体的菜单项目。 向上翻页键 - KEYCODE_PAGE_UP (92)我们可以通过 导航键 向下 - KEYCODE_DPAD_DOWN (20)通过 回车键 - KEYCODE_ENTER (66)这个键可以让我们选定某个菜单。 有了以上三个 key 我们就可以定位具体的菜单了。
添加到 WebStorm Tool 菜单中:
这样我们就添加好了,现在你可以在 WebStorm 菜单的 Tools 中看到这些栏目。 |
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK