Debugging Preparation: Windows Forms Applications (.NET)

This topic applies to:

Edition

Visual Basic

C#

F#

C++

Web Developer

Express

Topic does not apply Topic does not apply Topic does not apply Topic applies Topic does not apply

Pro, Premium, and Ultimate

Topic does not apply

Topic does not apply

Topic does not apply

Topic applies

Topic does not apply

The Windows Forms Application (.NET) template creates a Visual C++ Windows Forms application. For more information, see How to: Create a New Windows Forms Application Project.

Debugging this type of application in Visual Studio is similar to that in managed Windows Forms applications.

When you create a Windows Forms project with the project template, Visual Studio automatically creates required settings for the Debug and Release configurations. If necessary, you can change these settings in the <project name> Property Pages dialog box. For more information, see Debug and Release Configurations.

For more information, see Changing Project Settings for a C or C++ Debug Configuration.

Another way to debug a Windows Forms application is to start the application outside of Visual Studio and attach to it. For more information, see Attaching to a Running Program or Multiple Programs.

For recommended project settings, see Debugging Preparation: Recommended Property Settings.

To debug a Visual C++ Windows Forms application

  1. Open the project in Visual Studio.

  2. On the Debug menu, click Start.

  3. Debug using the techniques discussed in Using the Debugger.

See Also

Reference

Project Settings for a C++ Debug Configuration

Other Resources

Debugging Native Code

Debugging Preparation: Visual C++ Project Types