Well, in visual studio 2008 we were able to create infopath 2007 web form project and after that attach to iis process to debug infopath web form.
In visual studio 2010 there is not infopath project and we can use only vsto and cant attach to iis process.
So, how to debug Infopath 2010 web form? - is it possible?
The process for debugging InfoPath 2010 form templates with code behind has changed quite a bit from InfoPath 2007 thanks to Microsoft not letting us develop our stuff in Visual Studio anymore :-)
Actually there is a really nice MSDN article about Investigating Issues with InfoPath 2010 SharePoint Applications which will surely help you!
There are several things you need to do to enable your forms for debugging (all done in the InfoPath code editor or Visual Studio Tools for Applications):
Then you can deploy your template and attach to either the correct
w3wp
process or theSPUCWorkerProcess
for a sandboxed solution - for this you will need to use Visual Studio.In any case: Make sure you read the MSDN article ;-)
Debugging in InfoPath2010 is a bit tricky.You need to configure your VSTO Advanced Build option to store debug info and then open using VS2010.Attach the w3wp.exe processes using VS2010.Then you should be able to debug.For a complete steps ,check out my blog post How to debug Infopath2010 using VS2010
Yes it is possible. Debugging in Infopath would need the following steps highlighted in this post
In a nutshell it would require for you to: