id | title | brief | article |
---|---|---|---|
8049271B-C772-4E25-7EB5-DCD6713FFDB8 |
Output Information to Log Window |
This recipe shows how to debug using the log window. |
The log window is a useful debugging tool, and is simple to use.
- 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:
- Choose a point in your code where you would like to output information to the log window:
- 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: