Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Debugging in C#

via LinkedIn Learning

Overview

Debugging helps you build more accurate, efficient, and reliable C# applications. Learn how to debug your C# code using Visual Studio Code.

Syllabus

Introduction
  • Debugging in C#
  • What you should know
1. Basics of Debugging
  • What is debugging?
  • What is a print statement?
  • What is a breakpoint?
  • Inspecting values of variables
  • Execution in debug mode
  • The debugging process
  • Beginner debugging code challenge
  • Beginner debugging code challenge: Solution
2. More Debugging Tips and Tricks
  • Covering edge cases
  • Defensive programming
  • Side effects
3. Common Errors in C#
  • NullReferenceException
  • IndexOutOfRangeException
  • Logical errors
  • Using a reference like a value
4. Practice Debugging C# Programs
  • Basic code challenge
  • Basic code challenge: Solution
  • Logical code challenge
  • Logical code challenge: Solution
Conclusion
  • Next steps

Taught by

Kathryn Hodge

Reviews

Start your review of Debugging in C#

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.