Why You Need to Use System.Diagnostics.Debug More Than You Do
page 4 of 4
by Tim Rayburn
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 45162/ 113

Conclusion

I hope you can see now how this object and its methods can really help improve your code's traceability and more importantly ensure that your assumptions are documented in code.  The use of Assert to document assumptions and the other methods to provide tracing can really help the next developer understand what you are doing. Because remember, eventually we are all the next developer.

If you are excited about this and ready to give it a try, go for it.  You will also want to spend time with System.Diagnostics.Trace which has many of the same methods as Debug but does not go away when compiled in Release mode.


View Entire Article

User Comments

No comments posted yet.






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2022 ASPAlliance.com  |  Page Processed at 2022-08-15 9:32:03 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search