O'Reilly logo

C# 7 and .NET Core Cookbook by Dirk Strauss

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required