Let’s dive in and take a look at some easy tips and then move into using a debugging programs with ArcGIS. While it takes time to get used to the whitespace and learn the in’s and out’s of ArcPy, there can be some immediate relief in the form of debugging. Losing limbs in the fight against Python. It’s enough to make one start to feel like Black Knight from Monty Python and the Holy Grail. And finally, how is it even possible to debug Python scripts within ArcGIS? All these and more might come to mind when thinking about using Python. Then, there are challenges with working with ArcPy. First, there are the complications with whitespace. When you hit a breakpoint, you'll get a view that allows you to inspect the stack, see locals and globals, hover over variables (or select a text to be evaluated) and add expressions.Working with Python can feel like an exercise in frustration. Double-clicking an existing breakpoint will remove it. In a line with an existing breakpoint Ctrl+F10 will be able to remove the breakpoint, disable it and edit its properties (which can be used to provide conditions for the breakpoint to be hit). To add breakpoints, you can double click the left bar or use Ctrl+F10 > Add breakpoint.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |