Debugging Preparation: Windows Forms Applications (.NET)
The Windows Forms Application (.NET) template creates a Visual C++ Windows Forms application. For more information, see.
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.
To debug a Visual C++ Windows Forms application
Open the project in Visual Studio.
On the Debug menu, click Start.
Debug using the techniques discussed in Using the Debugger.