Now, open the solution from the previous recipe. ClickFile|Open|Open Project/Solution, or pressCtrl + Shift + O, and select the Chapter10.Logging solution.
Press Ctrl + Shift + B for a quick build to check that everything is fine.
The Solution Explorer should look like this:
Now, double-click on the LoggerDemo.cs label to open the code window.
Scroll down until you reach the WriteLog() method.
Now, as shown in the following, click on the gray bar on the left side of the code window to add a debug point:
Again, click on the Program.cs tab.
Press F5 to debug the code.
As you can see, the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.