January 2003
Intermediate to advanced
896 pages
19h 58m
English
The System.Diagnostics namespace contains the Debug class. In the full .NET Framework, the Debug.Write method can be used to send application-specific information to any registered listener applications, such as debuggers. If the application is running under the debugging environment, output from Debug.Write is sent to the output window of the Visual Studio .NET debugger.
using System.Diagnostics;
⋮
Debug.Write("The value of x is " + x.ToString());The initial release of the Visual Studio. NET debugger for the .NET Compact Framework does not implement this feature. However, you can define your own listener classes within your application to handle debug messages. The DebugTrace application included with this book’s ...
Read now
Unlock full access