Have you ever struggled to get a complex Python code block working in the Field Calculator? Ever been annoyed with scrolling up and down in the tiny code block window? If so, this article is for you as we go down the rabbit hole on diagnostics and debugging on your code block in the Field Calculator (a.k.a. the Calculate Field geoprocessing tool). Much of this content will also serve as a general into to troubleshooting and debugging Python programming for ArcGIS.
Read more...
Field Calculator article sample code.zip