mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
adds log-ios and log-android cli commands
Summary: solves first part of #8186 Closes https://github.com/facebook/react-native/pull/8352 Differential Revision: D3475905 Pulled By: mkonicek fbshipit-source-id: 99f6aa15b92ba3192fa0b812d369bd7020469573
This commit is contained in:
committed by
Facebook Github Bot 2
parent
fe55dd1a9a
commit
39f524d8e5
+4
-2
@@ -54,9 +54,11 @@ YellowBoxes can be disabled during development by using `console.disableYellowBo
|
||||
|
||||
## Accessing logs
|
||||
|
||||
To view detailed logs on iOS, open your app in Xcode, then Build and Run your app on a device or the iPhone Simulator. The console should appear automatically after the app launches. If your app is failing to build, check the Issues Navigator in Xcode.
|
||||
Run `react-native log-ios` in a terminal to display the logs for an iOS app running on a device or a simulator.
|
||||
|
||||
Run `adb logcat *:S ReactNative:V ReactNativeJS:V` in a terminal to display the logs for an Android app running on a device or an emulator.
|
||||
You can also view the iOS logs in Xcode: open your app in Xcode, then Build and Run your app on a device or the iPhone Simulator. The console should appear automatically after the app launches. If your app is failing to build, check the Issues Navigator in Xcode.
|
||||
|
||||
Run `react-native log-android` in a terminal to display the logs for an Android app running on a device or an emulator.
|
||||
|
||||
## Chrome Developer Tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user