Respond to an application crash on your computer without registering in debug mode

I use the latest version of react and react-native:

"react": "16.1.1", "react-native": "^0.50.3" 

Several times my application crashes completely and closes without registering in chrome, and I don’t get a red screen on the phone, I’m in debug mode, of course, I get a normal error or record a chrome console.

For example, with this view, I give the same data. Effect 1 works well and does not break the application. rendering 2 works for multiple lines, causing the application to crash

enter image description here

I get an application crash without any log for another type of error (for example, a missing parameter in the details).

Any way to track or resolve this? I did not find local tools for this

+5
source share
1 answer

I will finally solve this using adb logcat , working for android

adb logcat com.yourAppName:D *:W

yourAppName is the one you used in package.json under the name field

0
source

Source: https://habr.com/ru/post/1273626/


All Articles