Episode

Get started with C# Ep06: Debug C# console applications

with Hamida Rebai, Clifford Agius, Katie Savage

Learn how to debug C# console applications in Visual Studio Code and how to implement exception handling using the try-catch pattern. Configure the C# debugger tools in Visual Studio Code and use the debugger tools to isolate and fix logic issues. Examine the exception types provided by .NET and the properties of exception objects, then implement exception handling and throw customized exception objects.

Learning objectives

  • Review the principles of code debugging and exception handling
  • Implement the Visual Studio Code debugging tools for C#
  • Implement exception handling in C# console applications
  • Create and throw exceptions in C# console applications
  • Debug and handle exceptions in a C# console application using Visual Studio Code
  • Debug a C# console application using Visual Studio Code

Chapters

  • 00:00 - Introduction
  • 02:49 - Learning objectives
  • 06:20 - Get started with data warehouses in Microsoft Fabric
  • 10:49 - Testing, debugging, and exception handling
  • 15:44 - Software testing and developer responsibilities
  • 23:03 - Recap
  • 25:37 - Knowledge check
  • 28:38 - Code debugging approach to debugging code
  • 33:55 - Knowledge check
  • 36:47 - Examine exceptions and how exceptions are used
  • 42:13 - Knowledge check
  • 49:30 - Demo - Examine the Visual Studio Code debugger interface
  • 01:17:10 - Common scenarios that require exception handling
  • 01:20:15 - Recap
  • 01:32:11 - Conclusion

Connect

Beginner
Developer
Higher Education Educator
K-12 Educator
Student
.NET
Visual Studio Code