<?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 Better debug tutorials for toolbox in Python Ideas</title>
    <link>https://community.esri.com/t5/python-ideas/better-debug-tutorials-for-toolbox/idi-p/1189705</link>
    <description>&lt;P&gt;I found the hard way that debuging a pyt could be very script like.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;BR /&gt;class Toolbox(object):&lt;BR /&gt;///Toolboxcode and Classes&lt;BR /&gt;&lt;BR /&gt;def &lt;/SPAN&gt;&lt;SPAN&gt;debug&lt;/SPAN&gt;():&lt;BR /&gt;    &lt;SPAN&gt;"""&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    Debug with pydevd (I use pycharm but people could just change the aproach)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    """&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;tbx &lt;/SPAN&gt;= Toolbox()&lt;BR /&gt;    tool = ToolboxLabel()&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;'Debugging tool: {}'&lt;/SPAN&gt;.format(tool.label))&lt;BR /&gt;    debug_folder = os.path.dirname(__file__)&lt;BR /&gt;    params = tool.getParameterInfo()&lt;BR /&gt;    params[&lt;SPAN&gt;0&lt;/SPAN&gt;].value = os.path.join(debug_folder&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"test"&lt;/SPAN&gt;)&lt;BR /&gt;    params[&lt;SPAN&gt;1&lt;/SPAN&gt;].value = os.path.join(debug_folder&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'test'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"docs"&lt;/SPAN&gt;) &lt;SPAN&gt;#os.path.join(debug_folder, 'testes', "pdfs")&lt;BR /&gt;&lt;/SPAN&gt;    params[&lt;SPAN&gt;2&lt;/SPAN&gt;].value = &lt;SPAN&gt;"CE"&lt;/SPAN&gt;&lt;SPAN&gt;#"PI"&lt;BR /&gt;&lt;/SPAN&gt;    params[&lt;SPAN&gt;3&lt;/SPAN&gt;].value = &lt;SPAN&gt;50&lt;BR /&gt;&lt;/SPAN&gt;    params[&lt;SPAN&gt;4&lt;/SPAN&gt;].value = os.path.join(debug_folder&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'test'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'temp'&lt;/SPAN&gt;)&lt;BR /&gt;    params[&lt;SPAN&gt;5&lt;/SPAN&gt;].value = os.path.join(debug_folder&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'test'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"test.shp"&lt;/SPAN&gt;)&lt;BR /&gt;    tool.execute(params&lt;SPAN&gt;, None&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;&lt;SPAN&gt;"__main__" &lt;/SPAN&gt;== __name__:&lt;BR /&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;&lt;SPAN&gt;"pydevd" &lt;/SPAN&gt;&lt;SPAN&gt;in &lt;/SPAN&gt;sys.modules:&lt;BR /&gt;        debug()&lt;/PRE&gt;&lt;P&gt;A more modern official debug&lt;BR /&gt;doc/Tutorial it would be appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2022 04:38:58 GMT</pubDate>
    <dc:creator>HildermesJoséMedeirosFilho</dc:creator>
    <dc:date>2022-07-06T04:38:58Z</dc:date>
    <item>
      <title>Better debug tutorials for toolbox</title>
      <link>https://community.esri.com/t5/python-ideas/better-debug-tutorials-for-toolbox/idi-p/1189705</link>
      <description>&lt;P&gt;I found the hard way that debuging a pyt could be very script like.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;BR /&gt;class Toolbox(object):&lt;BR /&gt;///Toolboxcode and Classes&lt;BR /&gt;&lt;BR /&gt;def &lt;/SPAN&gt;&lt;SPAN&gt;debug&lt;/SPAN&gt;():&lt;BR /&gt;    &lt;SPAN&gt;"""&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    Debug with pydevd (I use pycharm but people could just change the aproach)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    """&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;tbx &lt;/SPAN&gt;= Toolbox()&lt;BR /&gt;    tool = ToolboxLabel()&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;'Debugging tool: {}'&lt;/SPAN&gt;.format(tool.label))&lt;BR /&gt;    debug_folder = os.path.dirname(__file__)&lt;BR /&gt;    params = tool.getParameterInfo()&lt;BR /&gt;    params[&lt;SPAN&gt;0&lt;/SPAN&gt;].value = os.path.join(debug_folder&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"test"&lt;/SPAN&gt;)&lt;BR /&gt;    params[&lt;SPAN&gt;1&lt;/SPAN&gt;].value = os.path.join(debug_folder&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'test'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"docs"&lt;/SPAN&gt;) &lt;SPAN&gt;#os.path.join(debug_folder, 'testes', "pdfs")&lt;BR /&gt;&lt;/SPAN&gt;    params[&lt;SPAN&gt;2&lt;/SPAN&gt;].value = &lt;SPAN&gt;"CE"&lt;/SPAN&gt;&lt;SPAN&gt;#"PI"&lt;BR /&gt;&lt;/SPAN&gt;    params[&lt;SPAN&gt;3&lt;/SPAN&gt;].value = &lt;SPAN&gt;50&lt;BR /&gt;&lt;/SPAN&gt;    params[&lt;SPAN&gt;4&lt;/SPAN&gt;].value = os.path.join(debug_folder&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'test'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'temp'&lt;/SPAN&gt;)&lt;BR /&gt;    params[&lt;SPAN&gt;5&lt;/SPAN&gt;].value = os.path.join(debug_folder&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'test'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"test.shp"&lt;/SPAN&gt;)&lt;BR /&gt;    tool.execute(params&lt;SPAN&gt;, None&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;&lt;SPAN&gt;"__main__" &lt;/SPAN&gt;== __name__:&lt;BR /&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;&lt;SPAN&gt;"pydevd" &lt;/SPAN&gt;&lt;SPAN&gt;in &lt;/SPAN&gt;sys.modules:&lt;BR /&gt;        debug()&lt;/PRE&gt;&lt;P&gt;A more modern official debug&lt;BR /&gt;doc/Tutorial it would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 04:38:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/better-debug-tutorials-for-toolbox/idi-p/1189705</guid>
      <dc:creator>HildermesJoséMedeirosFilho</dc:creator>
      <dc:date>2022-07-06T04:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Better debug tutorials for toolbox - Status changed to: Under Consideration</title>
      <link>https://community.esri.com/t5/python-ideas/better-debug-tutorials-for-toolbox/idc-p/1562789#M401</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You've got our attention!&amp;nbsp; We think this is a good suggestion and have entered it in our backlog.&amp;nbsp; This does not guarantee that the idea will be developed so we encourage the community&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to continue voting and sharing feedback which will help teams gauge user demand.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 19:50:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/better-debug-tutorials-for-toolbox/idc-p/1562789#M401</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-11-26T19:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Better debug tutorials for toolbox - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/python-ideas/better-debug-tutorials-for-toolbox/idc-p/1597560#M451</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We're working on this!&amp;nbsp; This status does not guarantee that the functionality will be in the next release, but development work has begun. Release cycles vary by product so make sure to check&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.esri.com/en/other-resources/product-life-cycle" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN&gt;product&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;life cycle information&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to get an idea of when to expect the next release.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 15:10:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/better-debug-tutorials-for-toolbox/idc-p/1597560#M451</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2025-03-20T15:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Better debug tutorials for toolbox - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/python-ideas/better-debug-tutorials-for-toolbox/idc-p/1616490#M469</link>
      <description>&lt;P&gt;We have updated the documentation for debugging script tools and Python toolboxes with the release of ArcGIS Pro 3.5,&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/debugging-python-code.htm" target="_blank"&gt;Debug Python code—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The documentation now provides more detailed information &amp;amp; instructions for debugging with Visual Studio and Visual Studio Code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have also released the ArcGIS Pro Debugger Extension for Visual Studio Code (a free to use IDE) to improve the experience and accessibility of debugging script tools and Python toolboxes,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/python-ideas/debug-arcgis-pro-python-tools-in-vs-code-using/idc-p/1616472/highlight/true#M468" target="_blank"&gt;Debug ArcGIS Pro python tools in VS Code using Att... - Page 2 - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 15:10:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/better-debug-tutorials-for-toolbox/idc-p/1616490#M469</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2025-05-20T15:10:18Z</dc:date>
    </item>
  </channel>
</rss>

