Select to view content in your preferred language

Debug Python Add-Ins with Breakpoints

605
2
10-16-2014 03:14 PM
Status: Closed
Labels (1)
ThomasStanley-Jones
New Contributor III

I really want to be able to add breakpoints into a Python Add-In for debuggin purposes.  Being able to look around at the variable values and see what's going on would save sooooooo much time.  As it is, this can only be done with print statements in the code.  But when you don't know what is going wrong, it's really hard to write a print statement that will tell you what you need to know without some experimentation.  Every time a statement is changed, there is a 3-4 minute process of
 - compile the add-in,
 - install the add-in,
 - close Arc,
 - reopoen Arc,
 - run the add-in,
 - realize you misspelled the variable name,
 - repeat...
Please find a way to use breakpoints in Python Add-ins!

2 Comments
ClintonDow1

Just in case anyone comes upon this, it is entirely possible to set debug breakpoints in an ArcPy script within an IDE such as PyCharm. There is documentation on how to achieve this on esri blogs etc.

HannesZiegler
Status changed to: Closed

Thank you for your suggestion for debugging Python Add-ins. 

Development on ArcMap has ended, and we strongly encourage moving to ArcGIS Pro. ArcGIS Pro no longer supports Python Add-ins. Therefore, the suggested feature to is no longer relevant and won't be implemented. Please see Python Add-Ins for ArcGIS Pro (esri.com) for an in-depth explanation.

We understand that this may be disappointing, but we appreciate your suggestion and hope you will continue to share your thoughts on how we can improve our software. If you have any other suggestions or questions, please don't hesitate to reach out.