Output Information to Log Window

PDF for offline use
Related Articles:

Let us know how you feel about this

Translation Quality


0/250

This recipe shows how to debug using the log window.

Recipe

The log window is a useful debugging tool, and is simple to use.

  1. First, locate the log window. You can toggle it in Visual Studio for Mac by selecting the Application Output panel on the bottom right:

In Visual Studio, select the Output panel on the bottom left:

  1. Choose a point in your code where you would like to output information to the log window:

  1. Get the console to give you some helpful feedback about what is going on in your code. For example, you can have it output a message when a particular event occurs:

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.