From the course: Visual Studio App Center for Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Examine crash logs

Examine crash logs - Visual Studio Tutorial

From the course: Visual Studio App Center for Developers

Start my 1-month free trial

Examine crash logs

- The Visual Studio App Center portal will show us information about crashes that happen in our applications if we're using crash reporting. Let's take a look at what information we can get out of App Center. To do that, we need one of our apps to throw a crash error. The results will be similar with all platforms, but we're going to do this with our Xamarin application. So I'm going to go into our shared project within the Xamarin application, and go into views and open up the ItemsPage.xaml.cs. We're going to create an error and see what happens, so we're going to go down to the OnItemSelected method, and right at the beginning of it, we're going to throw a new exception. Maybe an InvalidCastException. We're going to put a little text in there that said, "Hey we got an error." Since we're throwing an exception here, we're going to comment out the rest of the code in this method. And now when the OnItemSelected method is called, our application will throw an InvalidCastException, and…

Contents