adb react-native 调试

打印带时间的log

adb (-d/-s + deviceid)logcat -v time  *:S ReactNative:V ReactNativeJS:V //实体设备
adb (-e/-s + deviceid)logcat -v time  *:S ReactNative:V ReactNativeJS:V //虚拟机

命令行控制reload

adb -s 0123456789ABCDEF reverse tcp:8081 tcp:8081
adb -d shell input keyevent 82 //实体设备
adb -e shell input keyevent 82 //虚拟设备

 

你可能感兴趣的:(adb react-native 调试)