{"id":114,"date":"2021-10-10T11:06:30","date_gmt":"2021-10-10T16:06:30","guid":{"rendered":"https:\/\/sites.owu.edu\/geog-199\/?p=114"},"modified":"2021-10-10T11:06:30","modified_gmt":"2021-10-10T16:06:30","slug":"wade-chapter-7-debugging-and-error-handling","status":"publish","type":"post","link":"https:\/\/sites.owu.edu\/geog-293\/2021\/10\/10\/wade-chapter-7-debugging-and-error-handling\/","title":{"rendered":"Wade: Chapter 7: Debugging and Error Handling"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Chapter 7: Debugging and Error Handling<\/span><\/p>\n<p><span style=\"font-weight: 400\">Terms:<\/span><\/p>\n<p><b>Breakpoint:<\/b> <span style=\"font-weight: 400\">\u00a0<\/span><span style=\"font-weight: 400\">used to interrupt a running program immediately before the execution of a programmer-specified instruction. This is often referred to as an instruction breakpoint. &#8230; Breakpoints can also be used to interrupt execution at a particular time, upon a keystroke etc.<\/span><\/p>\n<p><b>Commenting out code:<\/b> <span style=\"font-weight: 400\">to use comment syntax to remove something from the parsed code.<\/span><\/p>\n<p><b>Custom class: <\/b><span style=\"font-weight: 400\">\u00a0a developer defined class, based on one of the stock classes\u00a0<\/span><\/p>\n<p><b>Debugging:<\/b> <span style=\"font-weight: 400\">the complete control over the program execution<\/span><b>.<\/b><\/p>\n<p><b>Error handling: <\/b><span style=\"font-weight: 400\">the <\/span><span style=\"font-weight: 400\">process of responding to the occurrence of exceptions<\/span><span style=\"font-weight: 400\"> \u2013 anomalous or exceptional conditions requiring special processing \u2013 during the execution of a program.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Exception:<\/span><\/p>\n<p><b>Exception object:\u00a0<\/b><\/p>\n<p><span style=\"font-weight: 400\">An event that occurs during the execution of a program that disrupts the normal flow of instructions is called an exception.\u00a0<\/span><\/p>\n<p><b>Logic error:<\/b> <span style=\"font-weight: 400\">a mistake in a program&#8217;s source code that results in incorrect or unexpected behavior<\/span><\/p>\n<p><b>Traceback: <\/b><span style=\"font-weight: 400\">a report containing the function calls made in your code at a specific point<\/span><span style=\"font-weight: 400\">. <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Chapter 7: Debugging and Error Handling Terms: Breakpoint: \u00a0used to interrupt a running program immediately before the execution of a programmer-specified instruction. This is often referred to as an instruction breakpoint. &#8230; Breakpoints can also be used to interrupt execution <span class=\"readmore\"><a href=\"https:\/\/sites.owu.edu\/geog-293\/2021\/10\/10\/wade-chapter-7-debugging-and-error-handling\/\">Continue Reading<\/a><\/span><\/p>\n","protected":false},"author":1413,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/users\/1413"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":1,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":115,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/114\/revisions\/115"}],"wp:attachment":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}