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): 42296/ 53

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-2024 ASPAlliance.com  |  Page Processed at 2024-04-20 9:55:30 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search