<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Debugging IGPFunction in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-igpfunction/m-p/706037#M18887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That makes perfect sense. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Mar 2011 10:00:50 GMT</pubDate>
    <dc:creator>BerendVeldkamp</dc:creator>
    <dc:date>2011-03-25T10:00:50Z</dc:date>
    <item>
      <title>Debugging IGPFunction</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-igpfunction/m-p/706035#M18885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I developed a custom tool for ArcGIS Desktop (implementing IGPFunction). Now this seems to works fine, the only problem is that I cannot debug the Execute() method. The actual execution works, but a breakpoint that I set inside the method is never hit. The only workaround I found so far is to put &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;System.Diagnostics.Debugger.Break();&lt;/SPAN&gt;&lt;SPAN&gt; inside the Execute method: This will fire up a 2nd instance of Visual Studio, in which I can debug properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if there's an easier way to do this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 13:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-igpfunction/m-p/706035#M18885</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2011-02-18T13:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging IGPFunction</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-igpfunction/m-p/706036#M18886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please ensure your geoprocessing is not launched in the background, in a separate thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcMap select Geoprocecssing-&amp;gt;Geoprocessing Options. In the Background Processing option, disable the checkbox. This should enable you to hit your breakppoints.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 12:42:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-igpfunction/m-p/706036#M18886</guid>
      <dc:creator>StevePiche</dc:creator>
      <dc:date>2011-03-22T12:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging IGPFunction</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-igpfunction/m-p/706037#M18887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That makes perfect sense. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 10:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-igpfunction/m-p/706037#M18887</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2011-03-25T10:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging IGPFunction</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-igpfunction/m-p/706038#M18888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is just what I was looking for but it did not work for me.&amp;nbsp; I am using 10.1 and have created custom geoprocessing tools that depend on a second dll.&amp;nbsp; It would be great to debug this but it is impossible to get a break point to hit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a second question, the dll actually loads when I call it in the main thread but there is no evidence that it loads in the execution thread.&amp;nbsp; Very strange.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 21:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-igpfunction/m-p/706038#M18888</guid>
      <dc:creator>anthonybaker</dc:creator>
      <dc:date>2013-09-26T21:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging IGPFunction</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-igpfunction/m-p/706039#M18889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've found that inserting the following code into your solution will help with debugging custom GPFunctions.&amp;nbsp; This line will prompt you to start a session of Visual Studio and allow you to step through your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Diagnostics.Debugger.Launch();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just used this the other week against a custom GP function I built and place the code within its execution method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 16:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-igpfunction/m-p/706039#M18889</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2013-10-30T16:27:07Z</dc:date>
    </item>
  </channel>
</rss>

