Wednesday, July 24, 2013

Module 9 - Debugging and Error Handling
GIS 4102
 
This weeks assignment we worked on debugging existing scripts and error handling.  In the above screenshot you will see the results of a script that was originally given to me in with multiple errors.  I was tasked to correct the script and the errors that I found to produce the results you see.  This lab was a bit more challenging for me.  the status bar and error reporting in the interactive window was a huge help in isolating and fixing the errors.

 
In the above screenshot I was again asked to troubleshoot a script that was given to me.  Here I found that several of the errors were found simply by reading through the script and finding misspelled words as well as simple code errors.  I did utilize the debugger tool, but found most of my errors when I ran the program and read the error report in the interactive window.
 
It took a while for me to read through the script and understand exactly what it was trying to do.  I still feel I need to get a better understanding of for loops as well as if then statements. Perhaps a bit more reading and continual use will help me in the process. 


No comments:

Post a Comment