GEOG 489
Advanced Python Programming for GIS

1.7 Debugging and profiling

PrintPrint

Debugging and profiling are important skills for any serious programmer – debugging helps you step through your code and helps you analyze the contents of variables (watches) and set breakpoints to check code progress. Profiling runs code to provide an in-depth breakdown of the execution times of individual lines of code or blocks of code to identify performance bottlenecks in the code (e.g. slow I/O, inefficient loops etc.)

In this section, we will first examine debugging techniques and processes before investigating code profiling (which is required for the Lesson 1 Homework Assignment).