<?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: Debug python script tool with IDE in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/debug-python-script-tool-with-ide/m-p/612716#M47790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems you have to have your IDE closed so ArcGIS can open it in debug mode. You then need to click on debug in the IDE.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jun 2013 20:07:04 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2013-06-20T20:07:04Z</dc:date>
    <item>
      <title>Debug python script tool with IDE</title>
      <link>https://community.esri.com/t5/python-questions/debug-python-script-tool-with-ide/m-p/612715#M47789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcGIS 10.0 on Win7 64bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also using PythonWin (v. 2.6.218.0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried PyScripter (v. 2.5.3.0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've reviewed this help document, which seems to suggest that you can run a debugger/IDE such as PythonWin or PyScripter when testing code through the ArcToolbox interface:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Debugging_script_tools/00150000000m000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Debugging_script_tools/00150000000m000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The relevant section is under "Execute and debug your tool".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've added the path to the EXE for the IDE in the Geoprocessing Options dialog for both "Editor" and "Debugger".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not been able to get the debugger to attach to the ArcMap process, however.&amp;nbsp; I've tried both PythonWin and PyScripter and I can edit python scripts through the ArcGIS interface (right-click on a script tool, then select "Edit").&amp;nbsp; But when I try to run a script tool in debug mode (right-click on a script tool, then select "Debug"), the script runs fine, but the IDE never launches.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was really hoping to get this working as it would make debugging a lot easier, without having to hard-code references for parameters to get the IDE to debug in stand-alone mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 19:46:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/debug-python-script-tool-with-ide/m-p/612715#M47789</guid>
      <dc:creator>AndrewMurdoch</dc:creator>
      <dc:date>2013-06-20T19:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Debug python script tool with IDE</title>
      <link>https://community.esri.com/t5/python-questions/debug-python-script-tool-with-ide/m-p/612716#M47790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems you have to have your IDE closed so ArcGIS can open it in debug mode. You then need to click on debug in the IDE.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 20:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/debug-python-script-tool-with-ide/m-p/612716#M47790</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-06-20T20:07:04Z</dc:date>
    </item>
  </channel>
</rss>

