Debug InfoPath Code at runtime

on Wednesday, October 14, 2009


In VSTA open project properties and then in Build 





click on Advanced Button in Output section.In the Advanced window select full in debug info







After that publish your form.

Now to debug the code you have to open visual studio and Click on Tools -->Options and uncheck Enable Just My code option.








Make sure you select to open the form as a web page and not in client application in form library.

Then open the .cs file for your form's code and then attach all the w3wp.exe processes.

Now whenever you try to create a new item in your form library it will be able to get into this visual studio for you to debug the code.

0 comments: