Debugging with the .NET Framework SDK
Note The sample code for this tutorial is installed in the SDK Samples\Tutorials\Debugging subdirectory.
This tutorial shows developers how to debug .NET-based applications using the Microsoft .NET Framework SDK. The tools that accompany the .NET Framework allow developers to quickly build and deploy robust applications that take advantage of the new common language runtime environment.
This tutorial walks you through debugging two different programs: a simplified version of the component-based Calculator sample that is used elsewhere in the .NET Framework SDK, and a small ASP.NET application that uses source code files and code embedded in .aspx files. You will learn how to use both debuggers that ship with the .NET Framework SDK: the CorDbg command-line debugger and the Windows-based DbgCLR debugger.
The process of debugging a .NET program does not depend on the source code language used to develop the program. The demonstration programs used in this tutorial are written in Visual Basic .NET and Visual C#, the new language that was designed for .NET. The steps necessary to construct, compile, and run Visual Basic .NET and Visual C# programs are detailed in the Introduction to Developing with the .NET Framework. After reading this tutorial and running the samples, you will understand how programs execute in the .NET Framework and how they can be debugged. At that point, you should be ready to start modifying the samples or developing your own programs.
Note This tutorial does not cover error handling in the .NET Framework. For information on error handling, including code samples in both Visual C# and Visual Basic .NET, see Handling and Throwing Exceptions.