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

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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
  • How to use CoderPad
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
  • Solution: Find the bug in string truncation
2. More Debugging Tips and Tricks
  • Covering edge cases
  • Defensive programming
  • Side effects
  • Solution: Discount calculator
3. Common Errors in C#
  • NullReferenceException
  • IndexOutOfRangeException
  • Logical errors
  • Using a reference like a value
  • Solution: Library management system
4. Practice Debugging C# Programs
  • Basic code challenge
  • Basic code challenge: Solution
  • Logical code challenge
  • Logical code challenge: Solution
  • Solution: Find bug in factorial function
Conclusion
  • Next steps

Taught by

Kathryn Hodge

Reviews

4.6 rating at LinkedIn Learning based on 110 ratings

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.