--- title: C# Console Debug tags: Tutorial --- <font color="red">C#</font> Console Debug === ###### tags: `C#`,`Debug`,`tutorial` <div style="text-align:justify;">This chapter describes the scheme of how debug your C# console application. </div> ## Table of Contents [TOC] ## 1. Scenario When you use the C# console application you have a problem / error / does not work. Then you have to DEBUG! ## 2. Purpose This chapter aims to make the reader understand the debugging process in C# console to easy troubleshooting and solving problems. ## 3. Step ### 3.1 Set a breakpoint on the line code you want to check ![](https://learn.microsoft.com/en-us/dotnet/core/tutorials/media/debugging-with-visual-studio/set-breakpoint-in-editor-net6.png) ### 3.2 f5 execute program ![](https://learn.microsoft.com/en-us/dotnet/core/tutorials/media/debugging-with-visual-studio/breakpoint-hit-net6.png) It will stop on breakpoint to check whether the code is running normally ### 3.3 Set many breakpoint to know the place which occurs problem and fix it! ### 3.4 FINISH! ### 3.5 Delete all breakpoints Debug menu > select Delete All Breakpoints ![](https://i.imgur.com/FSyHgSR.jpg) ## 4. Reference https://learn.microsoft.com/en-us/dotnet/core/tutorials/debugging-with-visual-studio?pivots=dotnet-6-0