本项目是由expo搭建的Rn项目 首先要在电脑安装react-native-debugger软件 下载地址:https://github.com/jhen0409/react-native-debugger 使用 先把项目在模拟器运行起来,会得到19000的端口号 选择 Debugger/New Window,输入你的端口号 项目快捷键m打开菜单,选择Debug Remote JS,react-native-debugger 查看network调用,可以直接右键选择Enable Network Inspect 也可查阅官方使用方法 https://docs.expo.dev/debugging/tools/#react-native-debugger 注意 目前react-native-debugger v0.13.0目前只支持expo v47之前的版本,expo v48是无法使用的 https://github.com/jhen0409/react-native-debugger
我们可以下载React-native-debugger,用于RN项目的 调试 我在下载的时候,遇到两个无语的问题 这玩意儿是没有官网的,你只能从github上下载,我这里给一个点击就能直接下载的链接:https ://github.com/jhen0409/react-native-debugger/releases/download/v0.10.0/rn-debugger-macos-x64.zip 这个东西大概 加快下载速度的方式如下: 打开你的VPN 打开上面的链接:https://github.com/jhen0409/react-native-debugger/releases/download/v0.10.0 6.红屏,和上面一样,但提示的文字是“Runtime is not ready for debugging” 这一般是这种情况: 就是你先打开了调试器(React-Native-debugger),然后才启动的项目 解决办法:认真从一大堆输出中通过过滤掉其他信息的方式,定位到白色色块的error输出 9.调出React-Native-Debugger的时候,报警告:Another debugger is already
# 示例代码:使用React Native Debugger进行调试 npm install -g react-native-debugger react-native-debugger 3.2 Flutter
# 示例代码:使用React Native Debugger进行调试 npm install -g react-native-debugger react-native-debugger 第六部分:构建和部署
# 示例代码:使用React Native Debugger进行调试 npm install -g react-native-debugger react-native-debugger 第六部分:构建和部署
details. 1.5 For React Native, hybrid, desktop and server side Redux apps For React Native we can use react-native-debugger
react-native/docs/debugging.html#chrome-developer-tools [5] React Native Debugger: https://github.com/jhen0409/react-native-debugger