Debugging in C#

Debugging in C#

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

课程信息

  • 英文名称:Debugging in C#
  • 时长:1小时20分
  • 字幕:英语

课程目录

  1. Debugging in C#
  2. What you should know
  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
  11. Covering edge cases
  12. Defensive programming
  13. Side effects
  14. NullReferenceException
  15. IndexOutOfRangeException
  16. Logical errors
  17. Using a reference like a value
  18. Basic code challenge
  19. Basic code challenge: Solution
  20. Logical code challenge
  21. Logical code challenge: Solution
  22. Next steps

评论