你如何调试React Native? [英] How do you debug React Native?
本文介绍了你如何调试React Native?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当应用程序在应用程序模拟器中运行时,如何使用React Native调试其React代码?
How does one debug their React code with React Native while the app is running in app simulator?
推荐答案
对于Android应用,如果您使用的是Genymotion,则可以通过按CMD + m
键切换菜单,但是您可能需要通过以下方法在菜单中启用它:这样做.
For an Android App, if you're using Genymotion you can toggle the menu by pressing CMD + m
, but you may have to enable it in the menu by doing this.
- 取消勾选小工具
- 通过
CMD + m
单击 Chrome调试 启用该功能
- Untick widget
- Enable it by
CMD + m
click on debug in chrome
这篇关于你如何调试React Native?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文