July 2003
Intermediate to advanced
736 pages
16h 35m
English
Debugging, asserting, and tracing are still mainstays of application debugging. These capabilities are tucked away in the System.Diagnostics namespace. The System.Diagnostics.Debug.Write and System.Diagnostics.Debug.WriteLine statements replace Debug.Print from Visual Basic 6. The Debug.Assert shared method raises an exception if a condition fails. Assert is customarily used to ensure that application invariants—things that must be true about your application—remain true while your application runs. The System.Diagnostics.Trace class supports sending application trace information to a variety of locations.
NOTEThe System.Diagnostics namespace contains many more features than Debug, Assert, and Trace. However, ... |
Read now
Unlock full access