Module 3 - Debugging and Error Handling
This week, in the third GIS Programming lab, was about Debugging and Error Handling.
This lab was another expansion on what was learned in the last two labs by debugging and handling errors in scripts given to us. This lab had a total of three different scripts, varying in the complexity of their errors for us to check and change.
The first script, which you can see the results of below, was light with errors to fix. Mostly concerning syntax errors and inconsistent naming of certain executions or functions.
The second script was more hands on, with more light errors to fix but also an error of the ArcGIS application encountered with a save function. Luckily, through research, I was able to resolve the error and have the results print cleanly below.
The last script was more about executing a try except statement to get around an error code that was caused in the script. As you can see in my flow chart I figured to best way was to make the code execute under a try statement and if it ran into an error, the except statement printed the error. This worked flawlessly as you can see the results below were printed.
Overall I enjoyed this lab, it was all about trying to get the script to work and It was like solving a puzzle. I cannot wait to see what more unfolds in this class.




Comments
Post a Comment