<?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>idea Python toolbox runtime debugging needed in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/python-toolbox-runtime-debugging-needed/idi-p/932956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Currently if a Python toolbox causes an error on import, it shows up in the tool listing with a red x.&lt;BR /&gt;&lt;BR /&gt;If it's a syntax error, fine enough, that has been handled in the interface. However, if it's a runtime error, there's a red X but no way to check it. The only way i can check it is to copy the .pyt to .py and try to import it.&lt;BR /&gt;&lt;BR /&gt;As an example, I created an empty pyt in ArcCatalog and modified it slightly. This has no syntax errors, but I get a red X because the code fails when ArcCatalog tries to load it:&lt;BR /&gt;&lt;P&gt;&lt;IMG alt="0EME0000000TUqK" height="146" width="500" __migration_original_url="https://c.na9.content.force.com/servlet/rtaImage?eid=087E00000004Qgl&amp;amp;feoid=Body&amp;amp;refid=0EME0000000TUqK" __migration_image_ext="0EME0000000TUqK" class="jive-image" src="https://community.esri.com/legacyfs/online/204701_0EME0000000TUqK" /&gt;&lt;/P&gt;
&lt;BR /&gt;It would be great to have a tool or functionality that does a runtime check of .pyt files by attempting an import and reporting any runtime errors.

&lt;!-- content transformation source ID: 087E00000004Qgl --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2012 21:12:42 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2012-12-11T21:12:42Z</dc:date>
    <item>
      <title>Python toolbox runtime debugging needed</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/python-toolbox-runtime-debugging-needed/idi-p/932956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Currently if a Python toolbox causes an error on import, it shows up in the tool listing with a red x.&lt;BR /&gt;&lt;BR /&gt;If it's a syntax error, fine enough, that has been handled in the interface. However, if it's a runtime error, there's a red X but no way to check it. The only way i can check it is to copy the .pyt to .py and try to import it.&lt;BR /&gt;&lt;BR /&gt;As an example, I created an empty pyt in ArcCatalog and modified it slightly. This has no syntax errors, but I get a red X because the code fails when ArcCatalog tries to load it:&lt;BR /&gt;&lt;P&gt;&lt;IMG alt="0EME0000000TUqK" height="146" width="500" __migration_original_url="https://c.na9.content.force.com/servlet/rtaImage?eid=087E00000004Qgl&amp;amp;feoid=Body&amp;amp;refid=0EME0000000TUqK" __migration_image_ext="0EME0000000TUqK" class="jive-image" src="https://community.esri.com/legacyfs/online/204701_0EME0000000TUqK" /&gt;&lt;/P&gt;
&lt;BR /&gt;It would be great to have a tool or functionality that does a runtime check of .pyt files by attempting an import and reporting any runtime errors.

&lt;!-- content transformation source ID: 087E00000004Qgl --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 21:12:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/python-toolbox-runtime-debugging-needed/idi-p/932956</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-12-11T21:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python toolbox runtime debugging needed</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/python-toolbox-runtime-debugging-needed/idc-p/932957#M3401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The geoprocessing team posted a blog post just on this topic!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/12/14/how-to-debug-python-toolboxes-in-3-easy-steps/" target="_blank"&gt;http://blogs.esri.com/esri/arcgis/2012/12/14/how-to-debug-python-toolboxes-in-3-easy-steps/&lt;/A&gt;

&lt;!-- content transformation source ID: 00aE00000027XYO --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 00:03:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/python-toolbox-runtime-debugging-needed/idc-p/932957#M3401</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-01-10T00:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Python toolbox runtime debugging needed</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/python-toolbox-runtime-debugging-needed/idc-p/932958#M3402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;In the specific scenario you described above you should be able to right-click the tool and select "Why" this will bring up a dialog box that will print the exception that was raised.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;File "&amp;lt;string&amp;gt;", line 21, in __init__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ImportError: No module named foo&lt;/FONT&gt;

&lt;!-- content transformation source ID: 00aE00000028xF6 --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 19:05:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/python-toolbox-runtime-debugging-needed/idc-p/932958#M3402</guid>
      <dc:creator>ChrisFox</dc:creator>
      <dc:date>2013-03-07T19:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python toolbox runtime debugging needed - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/python-toolbox-runtime-debugging-needed/idc-p/1202918#M20849</link>
      <description>&lt;P&gt;This is implemented in ArcGIS Pro. When a tool fails at runtime, hover over the error banner to view the error messages.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HannesZiegler_1-1660579246395.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48652i0E14135BF0861F66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HannesZiegler_1-1660579246395.png" alt="HannesZiegler_1-1660579246395.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 16:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/python-toolbox-runtime-debugging-needed/idc-p/1202918#M20849</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2022-08-15T16:00:56Z</dc:date>
    </item>
  </channel>
</rss>

