Debugging C#
This course will teach you about debugging in C#. You'll learn techniques and approaches to debugging using common development tools.
What you'll learn
Debugging is the process of identifying the root cause of an error and correcting it. In this course, Debugging C#, you’ll learn to debug applications written in C# using common tools and techniques. First, you’ll explore basic debugging features of Visual Studio and Visual Studio Code. Next, you’ll discover how to debug more complex defects involving data and logic errors. Finally, you’ll learn how to write code to assist with debugging your own applications and for working in a team environment. When you’re finished with this course, you’ll have the skills and knowledge of debugging needed to find and fix defects in existing code.
Table of contents
- Understanding Debugging 5m
- Defect Categories 8m
- Visual Studio Debugger Basics 9m
- Hot Reload in Visual Studio 4m
- Visual Studio Code Debugger Basics 8m
- Configuring the Sample Project 3m
- Debugging the Cause of an Exception 6m
- Fixing the Bug 5m
- Debugging a Functional Error 5m
- Becoming a Better Debugger 3m
- Common Debugging Traps 5m
- An Effective Approach to Debugging 3m
- Stabilizing the Error 4m
- Debugging a Calculation Error in Visual Studio 7m
- Inspecting Data in the Debugger 8m
- Modifying Test Data in the Debugger 6m
- Fixing the Defect and Looking for Similar Errors 3m
- Debugging Data in Visual Studio Code 6m
- Introduction 1m
- Updates to the Sample Web Application 6m
- Conditional Breakpoints 3m
- Using TracePoints to Log Application State 5m
- Dependent Breakpoints 4m
- Understanding System.Diagnostics.Debug and TraceListeners 3m
- Using System.Diagnostics.Debug 3m
- Checkpoint 01 - Add a Debug Statement 0m
- Checkpoint 02 - Add a Category 0m
- Configuring TraceListeners 6m
- Checkpoint 03 - Use a ConsoleTraceListener 0m
- Controlling the Debugger in Code 5m
- Using Debug.Assert to Clarify Intention 3m
- Demo: Debug.Assert 3m
- Checkpoint 04 - Add Debug.Assert 0m
- DebuggerHidden Attribute for Navigation 4m
- DebuggerDisplay Attribute for Formatting 4m
- Adding Logging Code to Help with Debugging 4m
- Using iLogger in .NET Applications 7m
- Exercise 01 - Configure a Logging Provider 0m
- Course Summary 1m