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 | |
Close | closes the stream to receive no more output |
Fail | outputs the text with the call stack |
Flush | flushes the output buffer |
Indent | |
Indentlevel | |
Indentsize | |
Listeners | |
Unindent | |
Write | outputs the text |
WriteLine | outputs the text with a carriage return |
WriteLineIf |
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext