<?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 Debugging Line by Line in ArcMap VBA Editor vs. Visual Studio 2010 Add In Debugging in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-line-by-line-in-arcmap-vba-editor-vs/m-p/49794#M1297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: mb1471&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using ArcMap 10.0, in the vba code editor, I can add a shapefile to the Table of Contents.&amp;nbsp; I can execute a line of code in the vba editor and actually see a shapefile being added to the Table of Contents.&amp;nbsp; Then using a vba code editor break point I can move to ArcMap and examine the newly added shapefile. I can also hit ctrl + break during vba code execution, code is halted and I can use any ArcMap command interactively while vba code execution is paused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not figured out how to do this in Visual Studio 2010.&amp;nbsp; In Visual Studio, I add a shapefile to ArcMap using a line of ArcObjects code.&amp;nbsp; The line of code executes, Visual Studio stops on a breakpoint, but I cannot then move to ArcMap and observe or examine the newly added shapefile.&amp;nbsp; ArcMap 10.0 just says �??Not Responding�?� if I attempt to click in the Table of Contents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Visual Studio 2010 I have been debugging using the following steps&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Open Visual Studio Add In project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Set Debugging Properties to �??START EXTERNAL PROGRAM�?� pointing to ArcMap.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. set breakpoints in Visual Studio Code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Hit the debug button (f5) from the debug drop down menu&amp;nbsp; (the start program button)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5.&amp;nbsp; hitting f5 from Visual Studio opens ArcMap.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. I then add the Add In Button to the newly opened (debugging mode) ArcMap.exe&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. In ArcMap I click on the Add In to start code execution&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Once code executes in Visual Studio or the first breakpoint is hit, I can�??t access ArcMap at all, just get �??not responding�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any solutions or feedback ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 17:38:03 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-11-12T17:38:03Z</dc:date>
    <item>
      <title>Debugging Line by Line in ArcMap VBA Editor vs. Visual Studio 2010 Add In Debugging</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-line-by-line-in-arcmap-vba-editor-vs/m-p/49794#M1297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: mb1471&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using ArcMap 10.0, in the vba code editor, I can add a shapefile to the Table of Contents.&amp;nbsp; I can execute a line of code in the vba editor and actually see a shapefile being added to the Table of Contents.&amp;nbsp; Then using a vba code editor break point I can move to ArcMap and examine the newly added shapefile. I can also hit ctrl + break during vba code execution, code is halted and I can use any ArcMap command interactively while vba code execution is paused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not figured out how to do this in Visual Studio 2010.&amp;nbsp; In Visual Studio, I add a shapefile to ArcMap using a line of ArcObjects code.&amp;nbsp; The line of code executes, Visual Studio stops on a breakpoint, but I cannot then move to ArcMap and observe or examine the newly added shapefile.&amp;nbsp; ArcMap 10.0 just says �??Not Responding�?� if I attempt to click in the Table of Contents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Visual Studio 2010 I have been debugging using the following steps&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Open Visual Studio Add In project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Set Debugging Properties to �??START EXTERNAL PROGRAM�?� pointing to ArcMap.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. set breakpoints in Visual Studio Code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Hit the debug button (f5) from the debug drop down menu&amp;nbsp; (the start program button)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5.&amp;nbsp; hitting f5 from Visual Studio opens ArcMap.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. I then add the Add In Button to the newly opened (debugging mode) ArcMap.exe&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. In ArcMap I click on the Add In to start code execution&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Once code executes in Visual Studio or the first breakpoint is hit, I can�??t access ArcMap at all, just get �??not responding�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any solutions or feedback ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 17:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-line-by-line-in-arcmap-vba-editor-vs/m-p/49794#M1297</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-11-12T17:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Line by Line in ArcMap VBA Editor vs. Visual Studio 2010 Add In Debuggi</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-line-by-line-in-arcmap-vba-editor-vs/m-p/49795#M1298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcMap is not running when you are stopped on a breakpoint in Visual Studio.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VBA is different in that it is integrated into ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One suggestion is to use a PC with 2 screens.&amp;nbsp; Put Visual Studio on one screen and ArcMap on the other.&amp;nbsp; You still won't be able to interact with ArcMap but you should be able to see the display.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 18:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/debugging-line-by-line-in-arcmap-vba-editor-vs/m-p/49795#M1298</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-11-12T18:50:31Z</dc:date>
    </item>
  </channel>
</rss>

