<?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 Python script using Visual Studio in ArcGIS Pro? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/debugging-python-script-using-visual-studio-in/m-p/270172#M20822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/54387"&gt;Manish Shrivastav&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;Debug Python code  &lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Microsoft Visual Studio 2017 can be used to debug &lt;SPAN&gt;ArcGIS Pro&lt;/SPAN&gt; &lt;SPAN&gt;2.1&lt;/SPAN&gt; and later. Earlier versions of either of these applications will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didn't notice that on first look.&amp;nbsp; You will have to wait for someone else... I am a Spyder user. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2020 01:30:51 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-06-03T01:30:51Z</dc:date>
    <item>
      <title>Debugging Python script using Visual Studio in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/python-questions/debugging-python-script-using-visual-studio-in/m-p/270169#M20819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" data-value="0"&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;According to these links, one can debug a Python script using Visual Studio in ArcGIS Pro. &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/get-started/debugging-python-code.htm" rel="nofollow noreferrer"&gt;Debug Python code—ArcPy Get Started | ArcGIS Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=qrp46oVBiEY" rel="nofollow noreferrer"&gt;ArcGIS Pro and Python - YouTube&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGIS pro version 2.5.1 and Visual studio 2019 (16.6.1) . My steps&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Downloaded the 'Python development' workload to visual studio Pro 2019.&lt;/LI&gt;&lt;LI&gt;Edited my .py file to add some intentional errors for testing.&lt;/LI&gt;&lt;LI&gt;Opened ArcGIS Pro with my tool and my data to be run.&lt;/LI&gt;&lt;LI&gt;Opened my .py file in Visual Studio and added some breakpoints.&lt;/LI&gt;&lt;LI&gt;Attached to process in Visual Studio. See image below:&lt;/LI&gt;&lt;LI&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/495301_pastedImage_1.png" /&gt;&lt;/LI&gt;&lt;LI&gt;Ran my script tool in ArcGIS Pro.&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The tool fails in ArcGIS Pro because it has errors but&lt;STRONG&gt; I am not re routed to Visual Studio&lt;/STRONG&gt; to see the error line as I expected. I then removed the errors in the code and left only the breakpoints but I still wasn't able to hit the breakpoints. Again, the tool completed without re-routing me back to visual studio. Has anyone been able to successfully debug Python tools using Visual Studio Pro 2019 in ArcGIS Pro 2.5.1?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 00:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/debugging-python-script-using-visual-studio-in/m-p/270169#M20819</guid>
      <dc:creator>ManishShrivastav</dc:creator>
      <dc:date>2020-06-03T00:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Python script using Visual Studio in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/python-questions/debugging-python-script-using-visual-studio-in/m-p/270170#M20820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you follow the instructions in&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/get-started/debugging-python-code.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/get-started/debugging-python-code.htm"&gt;Debug Python code—ArcPy Get Started | Documentation&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;There is no mention of supported versions however.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 01:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/debugging-python-script-using-visual-studio-in/m-p/270170#M20820</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-06-03T01:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Python script using Visual Studio in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/python-questions/debugging-python-script-using-visual-studio-in/m-p/270171#M20821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Dan. I did exactly as explained here&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/get-started/debugging-python-code.htm"&gt;https://pro.arcgis.com/en/pro-app/arcpy/get-started/debugging-python-code.htm&lt;/A&gt; &lt;A _jive_internal="true" href="https://community.esri.com/thread/254441-debugging-python-script-using-visual-studio-in-arcgis-pro"&gt;&amp;nbsp;&lt;/A&gt; but without any success.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 01:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/debugging-python-script-using-visual-studio-in/m-p/270171#M20821</guid>
      <dc:creator>ManishShrivastav</dc:creator>
      <dc:date>2020-06-03T01:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Python script using Visual Studio in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/python-questions/debugging-python-script-using-visual-studio-in/m-p/270172#M20822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/54387"&gt;Manish Shrivastav&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;Debug Python code  &lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Microsoft Visual Studio 2017 can be used to debug &lt;SPAN&gt;ArcGIS Pro&lt;/SPAN&gt; &lt;SPAN&gt;2.1&lt;/SPAN&gt; and later. Earlier versions of either of these applications will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didn't notice that on first look.&amp;nbsp; You will have to wait for someone else... I am a Spyder user. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 01:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/debugging-python-script-using-visual-studio-in/m-p/270172#M20822</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-06-03T01:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Python script using Visual Studio in ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/python-questions/debugging-python-script-using-visual-studio-in/m-p/270173#M20823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Dan Patterson &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing it out. I am still using more recent versions of both visual studio pro 2019 as well as ArcGIS Pro 2.5.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 01:36:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/debugging-python-script-using-visual-studio-in/m-p/270173#M20823</guid>
      <dc:creator>ManishShrivastav</dc:creator>
      <dc:date>2020-06-03T01:36:57Z</dc:date>
    </item>
  </channel>
</rss>

