<?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 Difficultly Debugging an automated ArcMap extension in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/difficultly-debugging-an-automated-arcmap/m-p/567518#M15276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm developing a console application that launches ArcMap and executes a custom developed extension. The idea is that the the extension will be able to be scheduled to run in the off hours. The console app and extension work great most of the time but from time to time it throws errors. I'd like to be able to step through the extension's code when ArcMap is launched via the console application but I can't figure how to do so. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can step through the console application's code. If I launch the extension via VS, I can step through it's code. I just can't step through the extension's code when launched via the console. I think the problem is that since I creating the ArcMap instance within the console app, it's treating the extension as an external DLL, even though the source code is in the same solution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is anyone aware of any settings I can set to allow me to debug the extension?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Dec 2013 19:29:59 GMT</pubDate>
    <dc:creator>CraigPatterson</dc:creator>
    <dc:date>2013-12-11T19:29:59Z</dc:date>
    <item>
      <title>Difficultly Debugging an automated ArcMap extension</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/difficultly-debugging-an-automated-arcmap/m-p/567518#M15276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm developing a console application that launches ArcMap and executes a custom developed extension. The idea is that the the extension will be able to be scheduled to run in the off hours. The console app and extension work great most of the time but from time to time it throws errors. I'd like to be able to step through the extension's code when ArcMap is launched via the console application but I can't figure how to do so. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can step through the console application's code. If I launch the extension via VS, I can step through it's code. I just can't step through the extension's code when launched via the console. I think the problem is that since I creating the ArcMap instance within the console app, it's treating the extension as an external DLL, even though the source code is in the same solution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is anyone aware of any settings I can set to allow me to debug the extension?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 19:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/difficultly-debugging-an-automated-arcmap/m-p/567518#M15276</guid>
      <dc:creator>CraigPatterson</dc:creator>
      <dc:date>2013-12-11T19:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difficultly Debugging an automated ArcMap extension</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/difficultly-debugging-an-automated-arcmap/m-p/567519#M15277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I'm guessing that your console app passes some set of parameters to methods on your extension?&amp;nbsp; If you want to debug that code with those inputs then add a test project to your solution and set up a unit test that calls the method with those inputs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 20:19:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/difficultly-debugging-an-automated-arcmap/m-p/567519#M15277</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-12-11T20:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Difficultly Debugging an automated ArcMap extension</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/difficultly-debugging-an-automated-arcmap/m-p/567520#M15278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I suggest to call these from within your extension:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://msdn.microsoft.com/en-us/library/system.diagnostics.debugger.launch(v=vs.110).aspx" rel="nofollow" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/system.diagnostics.debugger.launch(v=vs.110).aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://msdn.microsoft.com/en-us/library/system.diagnostics.debugger.break(v=vs.110).aspx" rel="nofollow" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/system.diagnostics.debugger.break(v=vs.110).aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have done this many times.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 22:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/difficultly-debugging-an-automated-arcmap/m-p/567520#M15278</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-12-11T22:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difficultly Debugging an automated ArcMap extension</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/difficultly-debugging-an-automated-arcmap/m-p/567521#M15279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Richard. That did the trick!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 13:17:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/difficultly-debugging-an-automated-arcmap/m-p/567521#M15279</guid>
      <dc:creator>CraigPatterson</dc:creator>
      <dc:date>2013-12-12T13:17:20Z</dc:date>
    </item>
  </channel>
</rss>

