Full-Stack Development

Python Foundations ‐ Debugging

Lesson 03.01.09

Essential Question:

  • How do we effectively identify and resolve errors in programming code?

Learning Objectives:

  • Explain the purpose and functionality of debugging tools and techniques
  • Break down complex programming problems into smaller, more manageable steps
  • Analyze code to identify potential errors and evaluate the effectiveness of different debugging strategies

Standards:

  • NYS Next Generation Learning Standards RST.4.11-12 Determine the meaning of symbols, key terms, and other content-specific words and phrases as they are used in scientific or technical sources.
  • New York State Learning Standards CDOS 3a Students will demonstrate mastery of the foundation skills and competencies essential for success in the workplace.
  • IT Specialist Python 5.1 Analyze, detect, and fix code segments that have errors
  • IT Career Cluster Framework ITPD01.07.02 Perform testing and validation.

Materials:

Scaffolds:

Bridging Learning Gaps:

  • Resources are provided to scholars that covers previous day's content
  • Code Challenges in the worksheet increase in complexity allowing students to explore

Differentiation:

  • Video and Article versions of instructor demonstration is provided for students

Extensions:

  • Scholars who complete the worksheet, will begin drafting their second blog post

Opening Task (30 Minutes)

  • Scholars will complete opening task on Schoology covering topics learned from python foundations unit
  • Randomly selected scholar will facilitate review with peers

Debugging Intro (20 Minutes)

Instructor guided demonstration of debugging tools in Python + Visual Studio Code

Debugging Worksheet (30 Minutes)

Scholars will be given “broken” python code to debug using the tools demonstrated by instructor.

Scholars will have to identify the problem, propse and solution and modify the code in their github repository.

Break (10 Minutes)

Debugging Worksheet contd (60 Minutes)

Scholars continue work on debugging worksheet and submit at end of class.

Worksheet will be scored based on identification of the problem, fixing the code and documentation of the solution they created

Cleanup / Dismissal (10 Minutes)

Scholars will submit their worksheet demonstrating use of debugging skills