How to do it...

  1. To start off, go to ToolsOptions.
  2. 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:
  1. In the Recipes.cs file, you might need to add the following using statements:
        using System.Diagnostics;         using System.Reflection;         using System.IO;
  1. 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 the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.