{"id":1581,"date":"2013-11-09T16:08:44","date_gmt":"2013-11-09T16:08:44","guid":{"rendered":"http:\/\/www.stuartroberts.net\/?p=1581"},"modified":"2013-11-09T16:08:44","modified_gmt":"2013-11-09T16:08:44","slug":"debugging-infopath-browser-form","status":"publish","type":"post","link":"http:\/\/www.stuartroberts.net\/index.php\/2013\/11\/09\/debugging-infopath-browser-form\/","title":{"rendered":"Debugging InfoPath Browser Form"},"content":{"rendered":"<p>If you&#8217;re using custom code with your browser enabled InfoPath forms and would like to be able to debug them, follow the steps outlined below to configure the form to enable this.<\/p>\n<p>Open the Visual Studio Tool for Applications(VSTA) editor with the code behind for your InfoPath form.  In the solution explorer pane, right click your project and select Properties.<\/p>\n<p>Switch to the Build tab and click the Advanced button:<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2013\/11\/AdvancedButton.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2013\/11\/AdvancedButton.jpg\" alt=\"Advanced Button\" width=\"708\" height=\"601\" class=\"aligncenter size-full wp-image-1589\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2013\/11\/AdvancedButton.jpg 708w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2013\/11\/AdvancedButton-300x254.jpg 300w\" sizes=\"(max-width: 708px) 100vw, 708px\" \/><\/a><br \/>\n<!--more--><br \/>\nChange Debug Info to <em>Full<\/em>:<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2013\/11\/DebugInfo.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2013\/11\/DebugInfo.jpg\" alt=\"Debug Info\" width=\"424\" height=\"298\" class=\"aligncenter size-full wp-image-1590\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2013\/11\/DebugInfo.jpg 424w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2013\/11\/DebugInfo-300x210.jpg 300w\" sizes=\"(max-width: 424px) 100vw, 424px\" \/><\/a><\/p>\n<p>Rebuild your project and use the generated DLL with your form when deploying.  See my post about deploying InfoPath forms with code behind for more details on this &#8211; <a href=\"http:\/\/www.stuartroberts.net\/index.php\/2013\/03\/13\/register-code-behind-infopath-form-for-web-browsing\/\" title=\"Register Code Behind InfoPath Form for Web Browsing\" target=\"_blank\">Register Code Behind InfoPath Form for Web Browsing<\/a><\/p>\n<p>Now when you open the form in the browser, load the code file(s) into Visual Studio (not VSTA), connect to the worker process and you should be all set to debug your code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re using custom code with your browser enabled InfoPath forms and would like to be able to debug them, follow the steps outlined below to configure the form to enable this. Open the Visual Studio Tool for Applications(VSTA) editor &hellip; <a href=\"http:\/\/www.stuartroberts.net\/index.php\/2013\/11\/09\/debugging-infopath-browser-form\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[9,3],"tags":[84,81],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/plx2I-pv","_links":{"self":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1581"}],"collection":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/comments?post=1581"}],"version-history":[{"count":5,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1581\/revisions"}],"predecessor-version":[{"id":1594,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1581\/revisions\/1594"}],"wp:attachment":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/media?parent=1581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/categories?post=1581"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/tags?post=1581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}