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!
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.