- To start off, go to Tools, Options.
- Expand the IntelliTrace node and click on General. Ensure that Enable IntelliTrace is checked. Also, make sure that the IntelliTrace events and call information option is selected. Click on OK:
- In the Recipes.cs file, you might need to add the following using statements:
using System.Diagnostics; using System.Reflection; using System.IO;
- Add a method called ErrorInception() to the Recipes class. Also, add the code to read the base path and assume that there is a folder called log. Do not create this folder on your hard drive. We want an exception to be thrown. Lastly, add another ...
Get C# 7 and .NET Core Cookbook now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.