System.Diagnostics.Debug

Provides information about the program execution
Can provide messages to help you monitor the program execution sequence and provide performance measurement information
Debug.Print can be used to display messages in the Output window
Debug.Assert can be used to display messages to the user if the condition is false



Check the Options

Define DEBUG constant - Build tab
This is a compilation constant
For any of this to happen you must make sure the option is selected
SS


Release configuration

A release solution configuration ignores all the Debug class methods



Methods

Assert 
AutoFlush 
Closecloses the stream to receive no more output
Failoutputs the text with the call stack
Flushflushes the output buffer
Indent 
Indentlevel 
Indentsize 
Listeners 
Print 
Unindent 
Writeoutputs the text
WriteLineoutputs the text with a carriage return
WriteLineIf 


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext