Labels

Wednesday, June 3, 2015

GIS 4102: GIS Programming Module 4

Module 4: Debugging and Error Handling

This week’s assignment covered debugging and error handling in PythonWin using the debugger and the try-except statements.  The first and second script contained errors that were identified by running the debugger on a step by step (line by line) to correct the errors based on the error message information and codes provided by PythonWin.  The third script contained errors but the errors were not corrected.  Instead the try-except statements were used to capture the error and to print the error messages thus allowing the code to run with the errors.

Below is are screenshots of the interactive window results for the three scripts.




No comments:

Post a Comment