From the course: Ten Tips for the C# Developer

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Show custom debugger information

Show custom debugger information - C# Tutorial

From the course: Ten Tips for the C# Developer

Start my 1-month free trial

Show custom debugger information

- [Instructor] Visual Studio contains many powerful debugging tools, including these visualizer tools that allow us to visualize and see the values of variables and properties and other parts of our code while we're debugging and setting out a breakpoint. So for this example, I'm in this ShowExample method. And I've got a breakpoint on line 23. When I hit my breakpoint, I can see the contents of these variables here in many places. I've got an Autos window, I've got a Locals window. I can add items to a Watch window. All allow me to see the, in this case, the Locals, I can see the names of the local variables. And then I can read some basic information about it, for instance, allColors has a count of 140 and the data type for allColors is a GenericList of T and T in this case is CourseLib.WebColor. This is the class that I created in this part of this library. We'll look at the contents of this WebColor class…

Contents