Debugger.Break() from non-web form - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Debugger.Break() from non-web form Debugger.Break() from non-web form Last post 08-17-2011 05:19 AM by Jimmy. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 08-17-2011 03:15 AM michaelr524 Joined on 07-03-2011 Posts 23 Debugger.Break() from non-web form Reply Contact Hi, I wanted to debug some code which is called from FormEvents.Loading.So I can't attach a debugger to the infopath instance because the form is already finished loading before I can do it.So I tried using Debugger.Break() and Debugger.Launch() but these are just ignored... Anyone knows what's problem?Thanks,Michael 08-17-2011 03:57 AM In reply to Jimmy Joined on 07-03-2008 Posts 2,595 Re: Debugger.Break() from non-web form Mark as Not AnswerMark as Answer... Reply Contact Hello, I believe my experience in the past has been that a form has to be full trust to use Debugger.Break(). Could you give that a try? You could change it back to domain trust when you're done troubleshooting the issue. Jimmy Rishe / Software Developer / Microsoft MVPQdabra Software 08-17-2011 04:12 AM In reply to michaelr524 Joined on 07-03-2011 Posts 23 Re: Debugger.Break() from non-web form Mark as Not AnswerMark as Answer... Reply Contact Hi Jimmy, thank you for your answer.I could have worked but changing it to full trust will prevent it from running, I'm openning it from sharepoint.Thanks anyway,Michael 08-17-2011 05:19 AM In reply to Jimmy Joined on 07-03-2008 Posts 2,595 Re: Debugger.Break() from non-web form Mark as Not AnswerMark as Answer... Reply Contact It should be possible to publish a full-trust form to SharePoint if you have the necessary admin privileges. Could you have a look at these links: http://msdn.microsoft.com/en-us/library/aa202725(office.11).aspx http://msdn.microsoft.com/en-us/library/ms772405.aspx Jimmy Rishe / Software Developer / Microsoft MVPQdabra Software Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Hi,
I wanted to debug some code which is called from FormEvents.Loading.So I can't attach a debugger to the infopath instance because the form is already finished loading before I can do it.So I tried using Debugger.Break() and Debugger.Launch() but these are just ignored...
Anyone knows what's problem?
Thanks,Michael
Hello,
I believe my experience in the past has been that a form has to be full trust to use Debugger.Break(). Could you give that a try? You could change it back to domain trust when you're done troubleshooting the issue.
Hi Jimmy, thank you for your answer.
I could have worked but changing it to full trust will prevent it from running, I'm openning it from sharepoint.
Thanks anyway,Michael
It should be possible to publish a full-trust form to SharePoint if you have the necessary admin privileges. Could you have a look at these links:
http://msdn.microsoft.com/en-us/library/aa202725(office.11).aspx
http://msdn.microsoft.com/en-us/library/ms772405.aspx