![]() The logcat displays system messages, and messages/information you manually record with Log methods. We can add log methods that will write data to Android Studio's logcat. This allows us to see what certain variables are defined as, or check whether methods are being called.Īndroid Studio has the capability to write log messages in a very similar manner. It’s a method that allows us to write to the JavaScript console in the browser. ![]() When writing JavaScript in your Intro to Programming and JavaScript courses, you probably encountered console.log(). Then, in the next lesson we'll learn how to add breakpoints to strategically pause our code and narrow down where bugs and errors are occurring. ![]() First, we'll learn how to record helpful information into an area of Android Studio known as the logcat. In the next two lessons we'll explore two Android-specific approaches to debugging. Bugs occur all the time, and that's simply a normal part of development. Sometimes code that once worked perfectly no longer functions after implementing new code. Sometimes code doesn't work on the first try. Now that you're in your level 3 Epicodus course, you've probably come to realize how much trial-and-error goes into coding.
0 Comments
Leave a Reply. |