Debug InfoPath Projects Using the InfoPath 2003 Object Model
For information on debugging InfoPath managed code form template, including those that are coded against the InfoPath 2003 object model, see Preview and Debug InfoPath Form Templates with Code.