It may be necessary to debug the code you added to define a form factory. Use the following steps to debug a form factory using the Visual Studio debugger.
Set the Solution Configuration to Debug, and then rebuild the solution.
The debug symbols must be in the same location as the form factory assembly so they can be found by the debugger.
Set breakpoints in the areas of interest in your code.
Start the application for which you have created for form factory.
In Visual Studio, choose Attach to Process from the Debug menu. Select the process in which the form factory is registered. Typically, this will be Microsoft Dynamics GP.
Open the form for which you have registered the form factory. The debugger should stop at the first breakpoint, allowing you to step through your code for the form factory.