Summary
As a developer, you probably want to spend most of your time coding new features. Finding and fixing bugs often prevents you from doing that. You experienced how using debuggers can be an effective strategy to debug issues in your .NET programs. With either the built-in debugger for quick sessions or the Visual Studio Code debugger for more complex projects, you learned how to locate and fix those bugs. You learned how to do it even without knowing the code you're debugging beforehand.
In this module, you learned how to:
- Use Visual Studio Code debugger with a .NET program.
- Create breakpoints and run your code step by step to find issues.
- Inspect your program state at any execution step.
- Analyze the call stack to find the source of an exception.
Next steps
Continue learning more about .NET debugging with:
- Visual Studio Code debugging
- Working with C# in Visual Studio Code
- Tutorial: Debug a .NET Core console application using Visual Studio Code
- Tutorial: Debug a .NET Core console application using Visual Studio
- Tutorial: Debug a .NET Core console application using Visual Studio for Mac