Easier debugging with System.Diagnostics.Debug

Pubblicato il: 03 marzo 2021
sul canale di: Peter
1,882
26

In this video, I'm going to demonstrate the usage of System.Diagnostics.Debug class in C#.
NOTE:
I looked it up and the Debug.* statements will be in the compiled IL, however, the calls will be omitted, since the methods have a [Conditional("DEBUG")] attribute.
You can see for yourself in the source code of .NET Framework 4.8:
https://referencesource.microsoft.com...


Chapters:

00:00 - Intro
01:00 - Project Overview
03:28 - Explaining Environment.SpecialFolder
03:57 - Showcasing an example exception
05:12 - Common ways of preventing exceptions
06:15 - Debug.Assert
09:57 - Debug statements don't run in Release
11:35 - Debug.WriteLine
13:15 - Adding Trace Listeners
15:28 - AutoFlush and Flush
19:35 - Write line IF
21:08 - Indent & Unindent
23:15 - Boolean Switch
28:28 - Debug.Fail
30:46 - Outro


In questa pagina del sito puoi guardare il video online Easier debugging with System.Diagnostics.Debug della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Peter 03 marzo 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,882 volte e gli è piaciuto 26 spettatori. Buona visione!