![]() You can choose what information will be displayed before the messages by clicking the gear in the logcat's left sidebar. ( Update on Feb 26, 2018: due to a bug in React Native Android, if the app says it failed to connect the debugger and the URL in Chrome is not, change the URL to, kill the app, and try again. In the upper-right corner of the Android Monitor tool window, click on the drop-down menu and select 'Show only selected application' The output from Android Monitor is now almost the same as what it was with Debug. Open source files in the Sources tab, you can set breakpoints here. You still need to open Developer Tools in Chrome manually. The Chrome debugger will be opened automatically. Press ⌘+D on iOS simulator, ⌘+M on Android emulator, or shake real devices, you will see the in-app developer menu. You don’t need to install any other apps. The simplest way of debugging code is to use Chrome. So I spent a lot of time figuring out how to debug code and GUI of React Native apps in the efficient way. The reason is we write Javascript code but Xcode/Android studio doesn’t support debugging Javascript code. Even if you are an experienced iOS/Android developer, when you begin to learn React Native, you may struggle in debugging React Native apps. ![]() “A great software developer must be a great debugger.” I was talking about debugging React Native apps at the meetup. ![]()
0 Comments
Leave a Reply. |