How to debug Infopath 2010 web form?

☆樱花仙子☆ 提交于 2019-12-10 10:58:44

问题


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?


回答1:


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




回答2:


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):

  1. Build in Debug mode (Project Properties > Build > Active (Debug)
  2. Enable full Debug Info (Project Properties > Build > Advanced)
  3. Clear "Enable Just My Code" and select "Suppress JIT..." (Tools > Options > Debugging)

Then you can deploy your template and attach to either the correct w3wp process or the SPUCWorkerProcess for a sandboxed solution - for this you will need to use Visual Studio.

In any case: Make sure you read the MSDN article ;-)




回答3:


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:

  • Configure VSTA settings
  • Republish the Infopath form
  • Deploy the Infopath form
  • Debug the code through Visual Studio (not VSTA)


来源:https://stackoverflow.com/questions/3430959/how-to-debug-infopath-2010-web-form

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!