Debugging in C#

Debugging in C#

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 20m | 227 MB

Writing programs in C# is one thing. Writing programs that work is another. Discover how debugging your applications can make them more accurate, efficient, and reliable. Learn exactly what it means to debug your programs, and how tools like Visual Studio Code—the most popular IDE for C# programmers—can help you identify and solve errors in your code. Instructor Kathryn Hodge reviews the basic debugging process and introduces tips and tricks to reduce bugs and make your programs more secure. She also reviews the most common errors in C#—issues like null reference exceptions and logical errors—and provides three coding challenges to help you practice your debugging skills.

Topics include:

  • Debugging defined
  • Working with breakpoints
  • Inspecting values of variables
  • Defensive programming
  • Common C# errors
  • Debugging challenges
Table of Contents

Introduction
1 Debugging in C
2 What you should know

Basics of Debugging
3 What is debugging
4 What is a print statement
5 What is a breakpoint
6 Inspecting values of variables
7 Execution in debug mode
8 The debugging process
9 Beginner debugging code challenge
10 Beginner debugging code challenge Solution

More Debugging Tips and Tricks
11 Covering edge cases
12 Defensive programming
13 Side effects

Common Errors in C
14 NullReferenceException
15 IndexOutOfRangeException
16 Logical errors
17 Using a reference like a value

Practice Debugging C Programs
18 Basic code challenge
19 Basic code challenge Solution
20 Logical code challenge
21 Logical code challenge Solution

Conclusion
22 Next steps